1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

esp8285: properly initialize free gpio as input (#7165)

This commit is contained in:
david gauchard 2020-03-27 11:39:12 +01:00 committed by GitHub
parent 631f66bd08
commit a04c3244d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,11 +236,8 @@ extern void __attachInterrupt(uint8_t pin, voidFuncPtr userFunc, int mode)
} }
extern void __resetPins() { extern void __resetPins() {
for (int i = 0; i <= 5; ++i) { for (int i = 0; i <= 16; ++i) {
pinMode(i, INPUT); if (!isFlashInterfacePin(i))
}
// pins 6-11 are used for the SPI flash interface
for (int i = 12; i <= 16; ++i) {
pinMode(i, INPUT); pinMode(i, INPUT);
} }
} }