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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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