Added to avoid possible hiccup when opmode already 1

This commit is contained in:
KatAst
2016-01-02 12:43:52 +01:00
parent b3ed6e8588
commit 5787fcf8a4

View File

@@ -312,6 +312,7 @@ static void ICACHE_FLASH_ATTR resetTimerCb(void *arg) {
if(m!=2){
if( x == STATION_GOT_IP ){
#ifdef CHANGE_TO_STA
if(m != 1)
wifi_set_opmode(1);
#endif
log_uart(false);