Skip to content

Commit 7e432b0

Browse files
committed
Add back ARDUINO_EVENT_WIFI_READY
Fixes: #5315
1 parent cf6ab9c commit 7e432b0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: libraries/WiFi/src/WiFiGeneric.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,11 @@ bool wifiLowLevelInit(bool persistent){
567567
if(!persistent){
568568
lowLevelInitDone = esp_wifi_set_storage(WIFI_STORAGE_RAM) == ESP_OK;
569569
}
570+
if(lowLevelInitDone){
571+
arduino_event_t arduino_event;
572+
arduino_event.event_id = ARDUINO_EVENT_WIFI_READY;
573+
postArduinoEvent(&arduino_event);
574+
}
570575
}
571576
return lowLevelInitDone;
572577
}

0 commit comments

Comments
 (0)