|
|
@ -31,10 +31,10 @@ static void ICACHE_FLASH_ATTR resetBtnTimerCb(void *arg) { |
|
|
|
resetCnt++; |
|
|
|
resetCnt++; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (resetCnt>=6) { //3 sec pressed
|
|
|
|
if (resetCnt>=6) { //3 sec pressed
|
|
|
|
//wifi_station_disconnect();
|
|
|
|
wifi_station_disconnect(); |
|
|
|
//wifi_set_opmode(0x3); //reset to AP+STA mode
|
|
|
|
wifi_set_opmode(0x3); //reset to AP+STA mode
|
|
|
|
os_printf("Reset to AP mode. Restarting system...\n"); |
|
|
|
os_printf("Reset to AP mode. Restarting system...\n"); |
|
|
|
//system_restart();
|
|
|
|
system_restart(); |
|
|
|
} |
|
|
|
} |
|
|
|
resetCnt=0; |
|
|
|
resetCnt=0; |
|
|
|
} |
|
|
|
} |
|
|
|