Skip to content

Commit

Permalink
Fix WiFi disconnect event not being propageted. (#3085)
Browse files Browse the repository at this point in the history
Relative to #3006
  • Loading branch information
edoardoo authored and me-no-dev committed Sep 11, 2019
1 parent 7fe2812 commit cd4f903
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 cd4f903

Please sign in to comment.