Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 16fcdeb

Browse filesBrowse files
pillo79SuGlider
andauthored
fix(arduino): restore proper pin remapping functionality (espressif#11315)
Commit 0773dd7 from PR espressif#10841 broke pin remapping by moving its application too early in the definition process. This commit restores the original order of includes, ensuring that pin remapping is applied correctly. Signed-off-by: Luca Burelli <l.burelli@arduino.cc> Co-authored-by: Sugar Glider <rodrigo.garcia@espressif.com>
1 parent b461e01 commit 16fcdeb
Copy full SHA for 16fcdeb

File tree

1 file changed

+4
-1
lines changed
Filter options

1 file changed

+4
-1
lines changed

‎cores/esp32/Arduino.h

Copy file name to clipboardExpand all lines: cores/esp32/Arduino.h
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
#include "extra_attr.h"
4242

4343
#include "pins_arduino.h"
44-
#include "io_pin_remap.h"
4544
#include "esp32-hal.h"
4645

4746
#define PI 3.1415926535897932384626433832795
@@ -251,4 +250,8 @@ void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0);
251250
void noTone(uint8_t _pin);
252251

253252
#endif /* __cplusplus */
253+
254+
// must be applied last as it overrides some of the above
255+
#include "io_pin_remap.h"
256+
254257
#endif /* _ESP32_CORE_ARDUINO_H_ */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.