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) 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) 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 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();