Skip to content

Commit

Permalink
esp8285: properly initialize free gpio as input (#7165)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-a-v authored Mar 27, 2020
1 parent 631f66b commit a04c324
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions cores/esp8266/core_esp8266_wiring_digital.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,9 @@ extern void __attachInterrupt(uint8_t pin, voidFuncPtr userFunc, int mode)
}

extern void __resetPins() {
for (int i = 0; i <= 5; ++i) {
pinMode(i, INPUT);
}
// pins 6-11 are used for the SPI flash interface
for (int i = 12; i <= 16; ++i) {
pinMode(i, INPUT);
for (int i = 0; i <= 16; ++i) {
if (!isFlashInterfacePin(i))
pinMode(i, INPUT);
}
}

Expand Down

0 comments on commit a04c324

Please sign in to comment.