Skip to content

Commit

Permalink
changed from event->number to number as the loop variable when fillin…
Browse files Browse the repository at this point in the history
…g the list of wlans
  • Loading branch information
pljakobs committed Oct 31, 2024
1 parent 2b2897e commit cdc6fe6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ void StationImpl::staticScanCompleted(wifi_event_sta_scan_done_t* event, uint8_t
ESP_ERROR_CHECK(esp_wifi_scan_get_ap_records(&number, ap_info));

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

0 comments on commit cdc6fe6

Please sign in to comment.