1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

ESP8266 Disable Pin Initialization on Boot to fix pin toggling (#1185)

This commit is contained in:
Otto Winter
2020-07-24 10:41:34 +02:00
committed by GitHub
parent 25c62319a3
commit 50cf57affb

View File

@@ -304,3 +304,14 @@ void *memchr(const void *s, int c, size_t n) {
}
};
#endif
#ifdef ARDUINO_ARCH_ESP8266
extern "C" {
extern void resetPins() { // NOLINT
// Added in framework 2.7.0
// usually this sets up all pins to be in INPUT mode
// however, not strictly needed as we set up the pins properly
// ourselves and this causes pins to toggle during reboot.
}
}
#endif