Skip to content

Commit cd4f903

Browse files
edoardoome-no-dev
authored andcommitted
Fix WiFi disconnect event not being propageted. (#3085)
Relative to #3006
1 parent 7fe2812 commit cd4f903

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ esp_err_t WiFiGenericClass::_eventCallback(void *arg, system_event_t *event)
367367
(reason >= WIFI_REASON_BEACON_TIMEOUT && reason != WIFI_REASON_AUTH_FAIL)) &&
368368
WiFi.getAutoReconnect())
369369
{
370-
WiFi.disconnect(true);
370+
WiFi.disconnect();
371371
WiFi.begin();
372372
}
373373
} else if(event->event_id == SYSTEM_EVENT_STA_GOT_IP) {

0 commit comments

Comments
 (0)