Skip to content

Commit 75c9253

Browse files
authored
Merge pull request tonyp7#111 from tonyp7/bug-fixes
Fix tonyp7#108
2 parents 235b63e + 1bc7189 commit 75c9253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wifi_manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ static void wifi_manager_event_handler(void* arg, esp_event_base_t event_base, i
653653
case WIFI_EVENT_STA_DISCONNECTED:
654654
ESP_LOGI(TAG, "WIFI_EVENT_STA_DISCONNECTED");
655655

656-
wifi_event_sta_disconnected_t* wifi_event_sta_disconnected = (wifi_event_sta_disconnected_t*)malloc(sizeof(wifi_event_sta_disconnected));
656+
wifi_event_sta_disconnected_t* wifi_event_sta_disconnected = (wifi_event_sta_disconnected_t*)malloc(sizeof(wifi_event_sta_disconnected_t));
657657
*wifi_event_sta_disconnected = *( (wifi_event_sta_disconnected_t*)event_data );
658658

659659
/* if a DISCONNECT message is posted while a scan is in progress this scan will NEVER end, causing scan to never work again. For this reason SCAN_BIT is cleared too */

0 commit comments

Comments
 (0)