Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest
continue-on-error: true

strategy:
matrix:
# all the idf versions we want to test
idf:
- version: 'v5.4.1'
- version: 'v5.4.2'
- version: 'v5.5'
# all the examples
build:
- path: 'examples/coin_cell_demo/bulb'
- path: 'examples/coin_cell_demo/switch'
- path: 'examples/control'
- path: 'examples/get-started'
- path: 'examples/ota'
- path: 'examples/provisioning'
- path: 'examples/security'
- path: 'examples/solution'
- path: 'examples/wireless_debug'

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Build code
uses: espressif/esp-idf-ci-action@v1
with:
esp_idf_version: ${{ matrix.idf.version }}
path: ${{ matrix.build.path }}
target: esp32s3
command: 'idf.py build'
1 change: 0 additions & 1 deletion examples/coin_cell_demo/bulb/main/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ dependencies:
idf:
version: ">=4.4"
esp-now:
version: "2.*"
override_path: "../../../.."
1 change: 0 additions & 1 deletion examples/coin_cell_demo/switch/main/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ dependencies:
idf:
version: ">=4.4"
esp-now:
version: "2.*"
override_path: "../../../.."
1 change: 0 additions & 1 deletion examples/control/main/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ dependencies:
idf:
version: ">=4.4"
esp-now:
version: "2.*"
override_path: "../../.."
# # Put list of dependencies here
# # For components maintained by Espressif:
Expand Down
1 change: 0 additions & 1 deletion examples/get-started/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dependencies:
idf: ">=4.4"
esp-now:
version: "2.*"
override_path: "../../.."
1 change: 0 additions & 1 deletion examples/ota/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dependencies:
idf: ">=4.4"
esp-now:
version: "2.*"
override_path: "../../.."
1 change: 0 additions & 1 deletion examples/provisioning/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dependencies:
idf: ">=4.4"
esp-now:
version: "2.*"
override_path: "../../.."
1 change: 0 additions & 1 deletion examples/security/main/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dependencies:
idf: ">=4.4"
esp-now:
version: "2.*"
override_path: "../../.."
1 change: 0 additions & 1 deletion examples/solution/main/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ dependencies:
idf:
version: ">=4.4"
esp-now:
version: "2.*"
override_path: "../../.."
# # Put list of dependencies here
# # For components maintained by Espressif:
Expand Down
1 change: 0 additions & 1 deletion examples/wireless_debug/main/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ dependencies:
idf:
version: ">=4.4"
esp-now:
version: "2.*"
override_path: "../../.."
# # Put list of dependencies here
# # For components maintained by Espressif:
Expand Down
1 change: 1 addition & 0 deletions idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
description: This package provides enhanced ESP-NOW functions which will be easy to integrate into product.
url: https://github.com/esp-cpp/esp-now
issues: https://github.com/esp-cpp/esp-now/issues
version: "1.0.2"
dependencies:
idf: ">=5.0"
cmake_utilities: "0.*"
4 changes: 2 additions & 2 deletions src/espnow/src/espnow.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ void espnow_recv_cb(const uint8_t *addr, const uint8_t *data, int size)
}

/**< callback function of sending ESPNOW data */
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 1)
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0)
void espnow_send_cb(const esp_now_send_info_t *tx_info, esp_now_send_status_t status)
#else
void espnow_send_cb(const uint8_t *addr, esp_now_send_status_t status)
Expand All @@ -411,7 +411,7 @@ void espnow_send_cb(const uint8_t *addr, esp_now_send_status_t status)
g_buffered_num --;
}

#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 1)
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0)
if (!tx_info || !g_event_group) {
ESP_LOGW(TAG, "Send cb args error, tx_info is NULL");
return ;
Expand Down