Skip to content

Commit

Permalink
Merge branch 'bugfix/fix_wifi_scan_get_zero' into 'master'
Browse files Browse the repository at this point in the history
s3-lcd-ev-board: fix wifi scan get zero

See merge request ae_group/esp-dev-kits!190
  • Loading branch information
Lzw655 committed Apr 29, 2024
2 parents 60589a1 + 5ecbf10 commit 20c9f5e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions esp32-s3-lcd-ev-board/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,5 @@ The following examples are developed under the ESP-IDF **release/v5.1** branch a

## PSRAM 120M DDR

The PSRAM 120M DDR feature is intended to achieve the best performance of RGB LCD. It is only available with ESP-IDF **release/v5.1** and above version. It can be used by enabling the `IDF_EXPERIMENTAL_FEATURES`, `SPIRAM_SPEED_120M`, `SPIRAM_MODE_OCT` options. please see [here](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/flash_psram_config.html#all-supported-modes-and-speeds) for more details.

**Important Notes:**

1. The latest version (v1.5) of the ESP32-S3-LCD-EV-Board, equipped with the `ESP32-S3-WROOM-1-N16R16V` module, does not currently support this feature. If enabled, there may be an issue of the chip freezing upon power-up and then resetting.
2. The PSRAM 120 MHz DDR is an experimental feature and it has temperature risks as below:
* Cannot guarantee normal functioning with a temperature higher than 65 degrees Celsius.
* Temperature changes can also cause the crash of accessing to PSRAM/Flash, see [here](https://docs.espressif.com/projects/esp-idf/en/latest/esp32s3/api-guides/flash_psram_config.html#all-supported-modes-and-speeds) for more details.
The PSRAM 120M DDR feature is intended to achieve the best performance of RGB LCD. To enable this feature, please refer to [ESP-FAQ - LCD](https://docs.espressif.com/projects/esp-faq/en/latest/software-framework/peripherals/lcd.html#how-can-i-enable-psram-120m-octal-ddr-on-esp32-s3r8) for more details.
**Important Note**: The latest version (v1.5) of the ESP32-S3-LCD-EV-Board, equipped with the `ESP32-S3-WROOM-1-N16R16V` module, does not currently support this feature. If enabled, there may be an issue of the chip freezing upon power-up and then resetting.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ static void wifi_scan(void)
app_wifi_state_set(WIFI_SCAN_BUSY);

esp_err_t ret = esp_wifi_scan_start(NULL, true);
ESP_ERROR_CHECK(esp_wifi_scan_get_ap_records(&number, ap_info));
ESP_ERROR_CHECK(esp_wifi_scan_get_ap_num(&ap_count));
ESP_ERROR_CHECK(esp_wifi_scan_get_ap_records(&number, ap_info));
ESP_LOGI(TAG, "Total APs scanned = %u, ret:%d", ap_count, ret);

for (int i = 0; (i < DEFAULT_SCAN_LIST_SIZE) && (i < ap_count); i++) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ static void wifi_scan(void)
app_wifi_state_set(WIFI_SCAN_BUSY);

esp_err_t ret = esp_wifi_scan_start(NULL, true);
ESP_ERROR_CHECK(esp_wifi_scan_get_ap_records(&number, ap_info));
ESP_ERROR_CHECK(esp_wifi_scan_get_ap_num(&ap_count));
ESP_ERROR_CHECK(esp_wifi_scan_get_ap_records(&number, ap_info));
ESP_LOGI(TAG, "Total APs scanned = %u, ret:%d", ap_count, ret);

for (int i = 0; (i < DEFAULT_SCAN_LIST_SIZE) && (i < ap_count); i++) {
Expand Down

0 comments on commit 20c9f5e

Please sign in to comment.