Commit 8f1711f
committed
Fix compilation warning
Add 'const' declaration to avoid:
cores/arduino/pulse.c: In function 'pulseIn':
cores/arduino/pulse.c:44:29: warning: initialization discards
'const' qualifier from pointer target type [enabled by default]
volatile uint32_t *port = &(PORT->Group[p.ulPort].IN.reg);
^1 parent 54be8f0 commit 8f1711f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments