Skip to content

Commit

Permalink
Add missing lines from default AP event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
sebromero committed Oct 26, 2020
1 parent 59e224d commit f3a2d60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/WiFi/src/WiFi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ int arduino::WiFiClass::beginAP(const char* ssid, const char *passphrase, uint8_
}

// Default Event Handler
whd_driver_t whd_driver = ifp->whd_driver;
WHD_IOCTL_LOG_ADD_EVENT(whd_driver, event_header->event_type, event_header->flags, event_header->reason);

if ((event_header->event_type == (whd_event_num_t)WLC_E_LINK) || (event_header->event_type == WLC_E_IF)) {
whd_driver_t whd_driver = ifp->whd_driver;
if (osSemaphoreGetCount(whd_driver->ap_info.whd_wifi_sleep_flag) < 1) {
osStatus_t result = osSemaphoreRelease(whd_driver->ap_info.whd_wifi_sleep_flag);
if (result != osOK) {
Expand Down

0 comments on commit f3a2d60

Please sign in to comment.