mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 10:10:56 +00: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
|
#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…
x
Reference in New Issue
Block a user