Commit a5ada9b
committed
digitalPinToInterrupt: fix double pin remapping
The digitalPinToInterrupt() macro currently remaps the pin number to the
GPIO number. This is not necessary, as most users will then use the
returned value in attachInterrupt() or other similar API functions,
which already perform the same remapping.
The first half of the macro (the condition) does indeed require the
remapping to ensure the check operates on GPIO numbers.
Fixes espressif#10367.1 parent 674a028 commit a5ada9b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments