cleanup logging

This commit is contained in:
Morgan Allen 2018-10-09 21:37:54 -07:00
parent ffb505e516
commit cdaa2e9132

View file

@ -146,8 +146,6 @@ void wifi_manager_connect() {
}
};
ESP_LOGI(TAG, "connecting to AP %d of %d", ap_store.last + 1, ap_store.count);
memcpy((char *)&wifi_config.sta.ssid, ap_store.aps[ap_store.last].ssid, strlen(ap_store.aps[ap_store.last].ssid) + 1);
memcpy((char *)&wifi_config.sta.password, ap_store.aps[ap_store.last].password, strlen(ap_store.aps[ap_store.last].password) + 1);
@ -155,8 +153,8 @@ void wifi_manager_connect() {
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &wifi_config) );
ESP_LOGI(TAG, "wifi_init_sta finished.");
ESP_LOGI(TAG, "connect to ap SSID:%s password:%s",
wifi_config.sta.ssid, wifi_config.sta.password);
ESP_LOGI(TAG, "connect to ap SSID:%s",
wifi_config.sta.ssid);
ESP_ERROR_CHECK(esp_wifi_connect());
};
@ -168,7 +166,6 @@ void wifi_manager_main_loop() {
while(true) {
EventBits_t ev_bits = xEventGroupGetBits(wm_event_group);
ESP_LOGI(TAG, "ev_bits: 0x%02x", ev_bits);
if(ev_bits & AP_AVAILABLE &&
((ev_bits & (WIFI_SCANNING|WIFI_CONNECTED|WIFI_CONNECTING)) == 0)
) {