Fix AP switch

Fix AP switch (#8635)
This commit is contained in:
Theo Arends 2020-06-09 11:25:43 +02:00
parent 61ea7535a8
commit 56c491050e
1 changed files with 1 additions and 0 deletions

View File

@ -1431,6 +1431,7 @@ void CmndAp(void)
case 2: // AP2 case 2: // AP2
Settings.sta_active = XdrvMailbox.payload -1; Settings.sta_active = XdrvMailbox.payload -1;
} }
Settings.wifi_channel = 0; // Disable stored AP
restart_flag = 2; restart_flag = 2;
} }
Response_P(S_JSON_COMMAND_NVALUE_SVALUE, XdrvMailbox.command, Settings.sta_active +1, SettingsText(SET_STASSID1 + Settings.sta_active)); Response_P(S_JSON_COMMAND_NVALUE_SVALUE, XdrvMailbox.command, Settings.sta_active +1, SettingsText(SET_STASSID1 + Settings.sta_active));