diff --git a/code/components/jomjol_helper/Helper.cpp b/code/components/jomjol_helper/Helper.cpp index c2315d97..2ff92ef0 100644 --- a/code/components/jomjol_helper/Helper.cpp +++ b/code/components/jomjol_helper/Helper.cpp @@ -31,7 +31,12 @@ extern "C" #include "ClassLogFile.h" #include "esp_vfs_fat.h" -#include "../sdmmc_common.h" + +#if (ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0)) +#include +#else +#include <../sdmmc_common.h> +#endif static const char *TAG = "HELPER";