diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-11-12 20:40:09 -0600 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-11-12 20:40:45 -0600 |
| commit | 0f7081781e8a45da513b371978a354ea8734cc31 (patch) | |
| tree | 5a4e5fdc1f7154edfdcf0b291519af437c081264 | |
| parent | 8d3a878152c7cd29871c634865dd2fe2ee8b851e (diff) | |
esp32s2: wifi: fix several debug-build errors
Closes #3688
With this change, I don't get the ESP_ERROR_CHECK failed repeatedly
running code that imports wifi. (I'm not getting a successful connection
but that's probably my own fault, such as a secrets problem)
| -rw-r--r-- | ports/esp32s2/common-hal/wifi/__init__.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32s2/common-hal/wifi/__init__.c b/ports/esp32s2/common-hal/wifi/__init__.c index 833ef0623..2eb3719b4 100644 --- a/ports/esp32s2/common-hal/wifi/__init__.c +++ b/ports/esp32s2/common-hal/wifi/__init__.c @@ -143,8 +143,8 @@ void wifi_reset(void) { radio->handler_instance_got_ip)); ESP_ERROR_CHECK(esp_wifi_deinit()); esp_netif_destroy(radio->netif); + ESP_ERROR_CHECK(esp_event_loop_delete_default()); radio->netif = NULL; - ESP_ERROR_CHECK(esp_netif_deinit()); } void ipaddress_ipaddress_to_esp_idf(mp_obj_t ip_address, ip_addr_t* esp_ip_address) { |
