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:
parent
631f66bd08
commit
a04c3244d5
@ -236,11 +236,8 @@ 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) {
|
||||
for (int i = 0; i <= 16; ++i) {
|
||||
if (!isFlashInterfacePin(i))
|
||||
pinMode(i, INPUT);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user