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
5 changes: 5 additions & 0 deletions targets/ESP32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ if(NF_FEATURE_HAS_SDCARD)
execute_process(
COMMAND ${CMAKE_COMMAND} -E remove ${esp32_idf_SOURCE_DIR}/components/fatfs/src/ffconf.h
)
else()
# if not using FatFS need to check if IDF ffconfig.h exists
if(NOT(IS_ABSOLUTE ${esp32_idf_SOURCE_DIR}/components/fatfs/src/ffconf.h))
message(FATAL_ERROR "'${esp32_idf_SOURCE_DIR}/components/fatfs/src/ffconf.h' file is missing from IDF\rIf this was deleted on a previous build using SDCard, just revert the change and restore the file.")
endif()
endif()

# target folder was added in main CMakeList
Expand Down
2 changes: 1 addition & 1 deletion targets/ESP32/ESP32_S2/ffconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// need this include here when not using SDCARD so it can load the one from IDF
#include <ffconf.h>
#endif

/*---------------------------------------------------------------------------/
/ FatFs Functional Configurations
/---------------------------------------------------------------------------*/
Expand Down