diff options
Diffstat (limited to 'src/arch/esp8266/arch.cc')
-rw-r--r-- | src/arch/esp8266/arch.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/esp8266/arch.cc b/src/arch/esp8266/arch.cc index 3542423..0e11f2d 100644 --- a/src/arch/esp8266/arch.cc +++ b/src/arch/esp8266/arch.cc @@ -35,6 +35,12 @@ void ICACHE_FLASH_ATTR jump_to_main(void) os_timer_setfn(&loop_timer, (os_timer_func_t *)jump_to_loop, (void *)0); os_timer_arm(&loop_timer, 1000, 1); #endif + // Disable Wi-Fi + wifi_station_disconnect(); + wifi_set_opmode_current(NULL_MODE); + wifi_fpm_set_sleep_type(MODEM_SLEEP_T); + wifi_fpm_open(); + wifi_fpm_do_sleep(0xFFFFFFF); main(); } |