I suggest to remove the lines:
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);
}
in:
or maybe check the reset reason and only init the pins if resetInfo.reason == REASON_DEFAULT_RST ?
opinions?
I suggest to remove the lines:
in:
Arduino/cores/esp8266/core_esp8266_wiring_digital.cpp
Line 238 in 9e9515b
or maybe check the reset reason and only init the pins if
resetInfo.reason == REASON_DEFAULT_RST?opinions?