mirror of
https://github.com/jeelabs/esp-link.git
synced 2026-03-14 21:16:55 +01:00
Reverting accidentally commited disabling of GPIO0 low reset
This commit is contained in:
@@ -31,10 +31,10 @@ static void ICACHE_FLASH_ATTR resetBtnTimerCb(void *arg) {
|
||||
resetCnt++;
|
||||
} else {
|
||||
if (resetCnt>=6) { //3 sec pressed
|
||||
//wifi_station_disconnect();
|
||||
//wifi_set_opmode(0x3); //reset to AP+STA mode
|
||||
wifi_station_disconnect();
|
||||
wifi_set_opmode(0x3); //reset to AP+STA mode
|
||||
os_printf("Reset to AP mode. Restarting system...\n");
|
||||
//system_restart();
|
||||
system_restart();
|
||||
}
|
||||
resetCnt=0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user