Skip to content

Commit 553cc21

Browse files
committed
Update to latest ESPP; update actions to target ESP-IDF 5.4; fix example code
1 parent e7d543e commit 553cc21

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ jobs:
1616
- name: Build main
1717
uses: espressif/esp-idf-ci-action@v1
1818
with:
19-
esp_idf_version: release-v5.2
19+
esp_idf_version: release-v5.4
2020
path: '.'

.github/workflows/package_main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Build Main Code
2222
uses: espressif/esp-idf-ci-action@v1
2323
with:
24-
esp_idf_version: release-v5.2
24+
esp_idf_version: release-v5.4
2525
path: '.'
2626
command: 'idf.py build'
2727

.github/workflows/static_analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
# Do not build the project and do not use cmake to generate compile_commands.json
2424
use_cmake: false
2525

26-
# Use the 5.2 release version since it's what we build with
27-
esp_idf_version: release/v5.2
26+
# Use the 5.4 release version since it's what we build with
27+
esp_idf_version: release/v5.4
2828

2929
# (Optional) cppcheck args
3030
cppcheck_args: -i$GITHUB_WORKSPACE/components/espp --force --enable=all --inline-suppr --inconclusive --platform=mips32 --std=c++17 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt

main/main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@ extern "C" void app_main(void) {
1919

2020
// make a simple task that prints "Hello World!" every second
2121
espp::Task task({
22-
.name = "Hello World",
2322
.callback = [&](auto &m, auto &cv) -> bool {
2423
logger.debug("[{:.3f}] Hello from the task!", elapsed());
2524
std::unique_lock<std::mutex> lock(m);
2625
cv.wait_for(lock, 1s);
2726
// we don't want to stop the task, so return false
2827
return false;
2928
},
30-
.stack_size_bytes = 4096,
29+
.task_config = {
30+
.name = "Hello World",
31+
.stack_size_bytes = 4096,
32+
}
3133
});
3234
task.start();
3335

0 commit comments

Comments
 (0)