File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed
components/file_system/example/main Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,6 @@ jobs:
159159 - name : Build Examples
160160 uses : espressif/esp-idf-ci-action@v1
161161 with :
162- esp_idf_version : release-v5.2
162+ esp_idf_version : release-v5.4
163163 target : ${{ matrix.test.target }}
164164 path : ${{ matrix.test.path }}
Original file line number Diff line number Diff line change 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/lib -i$GITHUB_WORKSPACE/external -i$GITHUB_WORKSPACE/components/binary-log/detail -i$GITHUB_WORKSPACE/components/esp_littlefs -i$GITHUB_WORKSPACE/components/esp-nimble-cpp -i$GITHUB_WORKSPACE/components/hid-rp/include/hid -i$GITHUB_WORKSPACE/components/lvgl -i$GITHUB_WORKSPACE/components/esp-dsp --force --enable=all --inline-suppr --inconclusive --platform=mips32 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt
Original file line number Diff line number Diff line change 11# Espressif++ (ESPP)
22
33This is the repository for some c++ components developed for the
4- [ ESP-IDF] ( https://github.com/espressif/esp-idf ) framework.
4+ [ ESP-IDF] ( https://github.com/espressif/esp-idf ) framework. Specifically we are
5+ targeting ` ESP-IDF 5.4 ` currently.
6+
7+ > NOTE: This repo attempts to stay up to date with ESP-IDF. This means that the
8+ > code within may not be supported on older ESP-IDF targets.
59
610Each component has an ` example ` folder which contains c++ code showing how to
711use the component and which has a README including instructions for how to run
Original file line number Diff line number Diff line change @@ -269,9 +269,14 @@ extern "C" void app_main(void) {
269269 logger.info (" Wrote '{}' to {}" , file_contents, sub_file.string ());
270270
271271 // list files in a directory
272+ // NOTE: if we're using ESP-IDF < 5.4, we can't use directory_iterator
273+ #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0)
272274 logger.info (" Directory iterator:" );
275+ #else
273276 logger.warn (
274- " NOTE: directory_iterator is not implemented in esp-idf right now :( (as of v5.2.2)" );
277+ " NOTE: directory_iterator is not implemented in esp-idf less than 5.4, the following "
278+ " listing will not work." );
279+ #endif
275280 // NOTE: directory_iterator is not implemented in esp-idf right now :(
276281 // directory_iterator can be iterated using a range-for loop
277282 for (auto const &dir_entry : fs::recursive_directory_iterator{sandbox, ec}) {
You can’t perform that action at this time.
0 commit comments