Skip to content

Commit

Permalink
feat: Fix IDF 5.2 wifi scan regression
Browse files Browse the repository at this point in the history
  • Loading branch information
feelfreelinux committed Apr 4, 2024
1 parent fbce354 commit 42c5d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/targets/esp32/main/app/ESP32Connectivity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ void ESP32Connectivity::handleEvent(esp_event_base_t event_base,
uint16_t apCount = 0;
memset(scanInfo, 0, sizeof(scanInfo));

ESP_ERROR_CHECK(esp_wifi_scan_get_ap_records(&number, scanInfo));
ESP_ERROR_CHECK(esp_wifi_scan_get_ap_num(&apCount));
ESP_ERROR_CHECK(esp_wifi_scan_get_ap_records(&number, scanInfo));

jsonBody["networks"] = nlohmann::json::array();

Expand Down

0 comments on commit 42c5d54

Please sign in to comment.