Skip to content

Commit

Permalink
fixed coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
pljakobs committed Oct 31, 2024
1 parent f2fbdc5 commit 2b2897e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sming/Components/Network/Arch/Esp32/Platform/StationImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,10 @@ void StationImpl::staticScanCompleted(wifi_event_sta_scan_done_t* event, uint8_t
if(station.scanCompletedCallback) {
uint16_t number = event->number;
wifi_ap_record_t ap_info[number];

memset(ap_info, 0, sizeof(ap_info));
ESP_ERROR_CHECK(esp_wifi_scan_get_ap_records(&number, ap_info));

// TODO: Handle hidden APs
for(unsigned i = 0; (i < event->number); i++) {
list.addElement(new BssInfoImpl(&ap_info[i]));
Expand Down

0 comments on commit 2b2897e

Please sign in to comment.