瀏覽代碼

Update include directive for sdmmc_common.h

SybexXx 4 天之前
父節點
當前提交
65b175c85d
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      code/components/jomjol_helper/Helper.cpp

+ 6 - 1
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 <esp_private/sdmmc_common.h>
+#else
+#include <../sdmmc_common.h>
+#endif
 
 static const char *TAG = "HELPER";