if last is not initd when an AP is added, set to 0

This commit is contained in:
Morgan Allen 2018-09-21 21:32:23 -07:00
parent 30a0877de7
commit 8655f986ac
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ uint8_t wifi_manager_add_ap(char *ssid, char *password) {
++ap_store.count;
if(ap_store.last == -1)
ap_store.last = 0;
wifi_manager_save_config();
return ap_store.count;