You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/esp32FOTA.hpp
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -45,29 +45,43 @@ extern "C" {
45
45
46
46
// inherit includes from sketch, detect SPIFFS first for legacy support
47
47
#if __has_include(<SPIFFS.h>) || defined _SPIFFS_H_
48
+
#if !defined(DISABLE_ALL_LIBRARY_WARNINGS)
48
49
#pragma message "Using SPIFFS for certificate validation"
50
+
#endif
49
51
#include<SPIFFS.h>
50
52
#defineFOTA_FS &SPIFFS
51
53
#elif __has_include(<LittleFS.h>) || defined _LiffleFS_H_
54
+
#if !defined(DISABLE_ALL_LIBRARY_WARNINGS)
52
55
#pragma message "Using LittleFS for certificate validation"
56
+
#endif
53
57
#include<LittleFS.h>
54
58
#defineFOTA_FS &LittleFS
55
59
#elif __has_include(<SD.h>) || defined _SD_H_
60
+
#if !defined(DISABLE_ALL_LIBRARY_WARNINGS)
56
61
#pragma message "Using SD for certificate validation"
62
+
#endif
57
63
#include<SD.h>
58
64
#defineFOTA_FS &SD
59
65
#elif __has_include(<SD_MMC.h>) || defined _SD_MMC_H_
66
+
#if !defined(DISABLE_ALL_LIBRARY_WARNINGS)
60
67
#pragma message "Using SD_MMC for certificate validation"
68
+
#endif
61
69
#include<SD_MMC.h>
62
70
#defineFOTA_FS &SD_MMC
63
71
#elif defined _LIFFLEFS_H_ // older externally linked, hard to identify and unsupported versions of SPIFFS
72
+
#if !defined(DISABLE_ALL_LIBRARY_WARNINGS)
64
73
#pragma message "this version of LittleFS is unsupported, use #include <LittleFS.h> instead, if using platformio add LittleFS(esp32)@^2.0.0 to lib_deps"
74
+
#endif
65
75
#elif __has_include(<PSRamFS.h>) || defined _PSRAMFS_H_
76
+
#if !defined(DISABLE_ALL_LIBRARY_WARNINGS)
66
77
#pragma message "Using PSRamFS for certificate validation"
78
+
#endif
67
79
#include<PSRamFS.h>
68
80
#defineFOTA_FS &PSRamFS
69
81
#else
82
+
//#if !defined(DISABLE_ALL_LIBRARY_WARNINGS)
70
83
// #pragma message "No filesystem provided, certificate validation will be unavailable (hint: include SD, SPIFFS or LittleFS before including this library)"
0 commit comments