Skip to content

Commit

Permalink
Merge pull request #1 from edoardoo/wifi-sta-disconnect-event
Browse files Browse the repository at this point in the history
Fix WiFi disconnect event not being propageted.
  • Loading branch information
edoardoo authored Aug 12, 2019
2 parents fa55a2c + 5182357 commit 91c2ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/WiFi/src/WiFiGeneric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ esp_err_t WiFiGenericClass::_eventCallback(void *arg, system_event_t *event)
(reason >= WIFI_REASON_BEACON_TIMEOUT && reason != WIFI_REASON_AUTH_FAIL)) &&
WiFi.getAutoReconnect())
{
WiFi.disconnect(true);
WiFi.disconnect();
WiFi.begin();
}
} else if(event->event_id == SYSTEM_EVENT_STA_GOT_IP) {
Expand Down

0 comments on commit 91c2ff5

Please sign in to comment.