pull/84/head
KatAst 9 years ago
parent 05699cb489
commit 0cec56712f
  1. 8
      esp-link/cgiwifi.c

@ -309,10 +309,10 @@ static void ICACHE_FLASH_ATTR resetTimerCb(void *arg) {
if ( x == STATION_GOT_IP ) { if ( x == STATION_GOT_IP ) {
if (m != 1) { if (m != 1) {
#ifdef CHANGE_TO_STA #ifdef CHANGE_TO_STA
// We're happily connected, go to STA mode // We're happily connected, go to STA mode
DBG("Wifi got IP. Going into STA mode..\n"); DBG("Wifi got IP. Going into STA mode..\n");
wifi_set_opmode(1); wifi_set_opmode(1);
os_timer_arm(&resetTimer, RESET_TIMEOUT, 0); // check one more time after switching to STA-only os_timer_arm(&resetTimer, RESET_TIMEOUT, 0); // check one more time after switching to STA-only
#endif #endif
} }
log_uart(false); log_uart(false);

Loading…
Cancel
Save