Add some sanity checks for FS

This commit is contained in:
Luc 2019-11-01 14:50:22 +01:00
parent d4d2482fd1
commit f9bf48544a

View File

@ -108,4 +108,25 @@
#endif
#endif
/**************************
* FTP
* ***********************/
#if defined(FTP_FEATURE) && !defined(GLOBAL_FILESYSTEM_FEATURE)
#if FTP_FEATURE == FS_ROOT
#error FTP_FEATURE == FS_ROOT is not available because GLOBAL_FILESYSTEM_FEATURE is not enabled
#endif
#endif
#if defined(FTP_FEATURE) && !defined(FILESYSTEM_FEATURE)
#if FTP_FEATURE == FS_FLASH
#error FTP_FEATURE == FS_FLASH is not available because FILESYSTEM_FEATURE is not enabled
#endif
#endif
#if defined(FTP_FEATURE) && !defined(SD_DEVICE)
#if FTP_FEATURE == FS_SD
#error FTP_FEATURE == FS_SD is not available because SD_DEVICE is not enabled
#endif
#endif
#endif //SANITY_ESP3D_H