tuya: wifi-state: add default state

This commit is contained in:
Joel Stein 2018-10-29 23:45:18 +01:00
parent d8914906a8
commit ccd10e151f
1 changed files with 5 additions and 3 deletions

View File

@ -235,12 +235,14 @@ void TuyaSetWifiLed(){
case WIFI_WPSCONFIG:
wifi_state = 0x01;
break;
case WIFI_WAIT:
case WIFI_RETRY:
wifi_state = 0x02;
case WIFI_RESTART:
wifi_state = 0x03;
break;
case WIFI_WAIT:
case WIFI_RETRY:
default:
wifi_state = 0x02;
break;
}
snprintf_P(log_data, sizeof(log_data), "TYA: Set WiFi LED to state %d (%d)", WifiState(), wifi_state);