no longer reset from the loop, just announce the connection and sleep a while

This commit is contained in:
Morgan Allen 2018-09-21 21:30:30 -07:00
parent 657a5e44b9
commit fb49e95064
1 changed files with 5 additions and 3 deletions

View File

@ -71,11 +71,13 @@ void loop(void *p) {
while(true) {
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!");
}
}
}