fix(arduino): restore proper pin remapping functionality (#11315)

Commit 0773dd7619 from PR #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>
This commit is contained in:
Luca Burelli 2025-04-29 07:57:51 +02:00 committed by GitHub
parent b461e01e22
commit 16fcdeb0be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,7 +41,6 @@
#include "extra_attr.h"
#include "pins_arduino.h"
#include "io_pin_remap.h"
#include "esp32-hal.h"
#define PI 3.1415926535897932384626433832795
@ -251,4 +250,8 @@ void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0);
void noTone(uint8_t _pin);
#endif /* __cplusplus */
// must be applied last as it overrides some of the above
#include "io_pin_remap.h"
#endif /* _ESP32_CORE_ARDUINO_H_ */