mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 11:56:25 +01:00
ESP8266 Disable Pin Initialization on Boot to fix pin toggling (#1185)
This commit is contained in:
parent
25c62319a3
commit
50cf57affb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user