Skip to content

Commit e214f12

Browse files
authored
Merge pull request arduino#168 from kaysievers/warnings
Fix compilation warning
2 parents 54be8f0 + 8f1711f commit e214f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/arduino/pulse.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ uint32_t pulseIn(uint32_t pin, uint32_t state, uint32_t timeout)
4141
* No assembly required, no conversion of loop counts to times (which is
4242
* worrisome in the presence of cache.)
4343
*/
44-
volatile uint32_t *port = &(PORT->Group[p.ulPort].IN.reg);
44+
const volatile uint32_t *port = &(PORT->Group[p.ulPort].IN.reg);
4545
uint32_t usCallStart; // microseconds at start of call, for timeout.
4646
uint32_t usPulseStart; // microseconds at start of measured pulse.
4747
usCallStart = usPulseStart = micros();

0 commit comments

Comments
 (0)