소스 검색

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";