no longer reset from the loop, just announce the connection and sleep a while
This commit is contained in:
parent
657a5e44b9
commit
fb49e95064
1 changed files with 5 additions and 3 deletions
|
@ -71,11 +71,13 @@ void loop(void *p) {
|
||||||
while(true) {
|
while(true) {
|
||||||
vTaskDelay(5000 / portTICK_PERIOD_MS);
|
vTaskDelay(5000 / portTICK_PERIOD_MS);
|
||||||
|
|
||||||
ESP_LOGI(TAG, "resetting store");
|
EventBits_t ev_bits = xEventGroupGetBits(wm_event_group);
|
||||||
|
|
||||||
wifi_manager_reset_store();
|
if(ev_bits & WIFI_CONNECTED) {
|
||||||
|
vTaskDelay(5000 / portTICK_PERIOD_MS);
|
||||||
|
|
||||||
while(true) {};
|
ESP_LOGI(TAG, "Got connection!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue