From 3af22c84684a6370cdb14dac04289d2fdaa08acd Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 7 Jul 2025 23:33:50 +0000 Subject: [PATCH 1/5] Initial plan From 36c4b5d0d708af3b190402a4fa46195f4a15a966 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 7 Jul 2025 23:37:30 +0000 Subject: [PATCH 2/5] Fix deprecated ESP-IDF API calls in main.c - Replace esp_log_buffer_hex() with ESP_LOG_BUFFER_HEX() macro - Replace esp_bt_dev_set_device_name() with esp_bt_gap_set_device_name() Co-authored-by: albal <2963080+albal@users.noreply.github.com> --- main/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/main.c b/main/main.c index f0bdb52..ae5b4ef 100644 --- a/main/main.c +++ b/main/main.c @@ -296,7 +296,7 @@ static void esp_bt_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *pa case ESP_BT_GAP_AUTH_CMPL_EVT: { if (param->auth_cmpl.stat == ESP_BT_STATUS_SUCCESS) { ESP_LOGI_TS(TAG, "authentication success: %s", param->auth_cmpl.device_name); - esp_log_buffer_hex(TAG, param->auth_cmpl.bda, ESP_BD_ADDR_LEN); + ESP_LOG_BUFFER_HEX(TAG, param->auth_cmpl.bda, ESP_BD_ADDR_LEN); } else { ESP_LOGE_TS(TAG, "authentication failed, status:%d", param->auth_cmpl.stat); } @@ -1356,7 +1356,7 @@ void app_main(void) // Set Bluetooth device name const char *device_name = "RemoteHead"; - esp_bt_dev_set_device_name(device_name); + esp_bt_gap_set_device_name(device_name); // Initialize HFP client ret = esp_hf_client_init(); From 71fcde35c3c62b5bce62ada2531a0e12d85280bd Mon Sep 17 00:00:00 2001 From: Al West Date: Tue, 8 Jul 2025 00:42:39 +0100 Subject: [PATCH 3/5] Update build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 067753c..17c0846 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,14 +46,14 @@ jobs: - name: Set up ESP-IDF and Build uses: espressif/esp-idf-ci-action@v1.2.0 # Use the official ESP-IDF action with: - esp_idf_version: 'release-v5.1' # Specify your ESP-IDF version (e.g., release-v5.1, v5.0, master) + esp_idf_version: 'release-v5.4' # Specify your ESP-IDF version (e.g., release-v5.1, v5.0, master) command: 'idf.py build' # Build firmware (SPIFFS image created automatically) # --- Generate Combined Flashable Image --- - name: Create combined flashable binary uses: espressif/esp-idf-ci-action@v1.2.0 with: - esp_idf_version: 'release-v5.1' + esp_idf_version: 'release-v5.4' command: | # Use esptool from ESP-IDF to create combined binary # Path to generated binaries (relative to root directory) From 296249277f0bed2f1aa95537f946fe3d7a652f58 Mon Sep 17 00:00:00 2001 From: Al West Date: Tue, 8 Jul 2025 00:43:20 +0100 Subject: [PATCH 4/5] Update release.yml --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2173631..6687b2b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,14 +47,14 @@ jobs: - name: Set up ESP-IDF and Build uses: espressif/esp-idf-ci-action@v1.2.0 # Use the official ESP-IDF action with: - esp_idf_version: 'release-v5.1' # Specify your ESP-IDF version (e.g., release-v5.1, v5.0, master) + esp_idf_version: 'release-v5.4' # Specify your ESP-IDF version (e.g., release-v5.4, v5.0, master) command: 'idf.py build' # Build firmware (SPIFFS image created automatically) # --- Generate Combined Flashable Image --- - name: Create combined flashable binary uses: espressif/esp-idf-ci-action@v1.2.0 with: - esp_idf_version: 'release-v5.1' + esp_idf_version: 'release-v5.4' command: | # Use esptool from ESP-IDF to create combined binary # Path to generated binaries (relative to root directory) From edbe722da6066efe7e6988874344354a7b0fd16e Mon Sep 17 00:00:00 2001 From: Al West Date: Tue, 8 Jul 2025 01:19:57 +0100 Subject: [PATCH 5/5] Update test-firmware.yml --- .github/workflows/test-firmware.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-firmware.yml b/.github/workflows/test-firmware.yml index 9b2043c..c233dbe 100644 --- a/.github/workflows/test-firmware.yml +++ b/.github/workflows/test-firmware.yml @@ -21,7 +21,7 @@ jobs: - name: Build ESP32 firmware uses: espressif/esp-idf-ci-action@v1.2.0 with: - esp_idf_version: 'release-v5.1' + esp_idf_version: 'release-v5.4' command: | idf.py build