Jelajahi Sumber

Update include directive for sdmmc_common.h

SybexXx 4 hari lalu
induk
melakukan
65b175c85d
1 mengubah file dengan 6 tambahan dan 1 penghapusan
  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";