We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 54be8f0 + 8f1711f commit e214f12Copy full SHA for e214f12
cores/arduino/pulse.c
@@ -41,7 +41,7 @@ uint32_t pulseIn(uint32_t pin, uint32_t state, uint32_t timeout)
41
* No assembly required, no conversion of loop counts to times (which is
42
* worrisome in the presence of cache.)
43
*/
44
- volatile uint32_t *port = &(PORT->Group[p.ulPort].IN.reg);
+ const volatile uint32_t *port = &(PORT->Group[p.ulPort].IN.reg);
45
uint32_t usCallStart; // microseconds at start of call, for timeout.
46
uint32_t usPulseStart; // microseconds at start of measured pulse.
47
usCallStart = usPulseStart = micros();
0 commit comments