fix Espressif deprecating ESP_IF_WIFI_STA and replacing it with WIFI_IF_STA

This commit is contained in:
Sergio R. Caprile committed 2025-10-09 11:43:01 -03:00
1 parent bd12cb1b87
commit 967d746574
1 file changed
+1 -1
@@ -79,7 +79,7 @@ void wifi_init(const char *ssid, const char *pass) {
snprintf((char *) c.sta.ssid, sizeof(c.sta.ssid), "%s", ssid);
snprintf((char *) c.sta.password, sizeof(c.sta.password), "%s", pass);
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA));
ESP_ERROR_CHECK(esp_wifi_set_config(ESP_IF_WIFI_STA, &c));
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &c));
ESP_ERROR_CHECK(esp_wifi_start());
MG_DEBUG(("wifi_init_sta finished."));