Skip to content

Commit 5182357

Browse files
authored
Fix WiFi disconnect event not being propageted.
Relative to espressif#3006
1 parent fa55a2c commit 5182357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

Lines changed: 1 addition & 1 deletion
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)