#include <Arduino.h> | #include <Arduino.h> | ||||
#include <SdFat.h> | #include <SdFat.h> | ||||
// Use FILE_READ & FILE_WRITE as defined by FS.h | // Use FILE_READ & FILE_WRITE as defined by FS.h | ||||
#ifdef FILE_READ | |||||
#if defined(FILE_READ) && !defined(FS_H) | |||||
#undef FILE_READ | #undef FILE_READ | ||||
#endif | #endif | ||||
#ifdef FILE_WRITE | |||||
#if defined(FILE_WRITE) && !defined(FS_H) | |||||
#undef FILE_WRITE | #undef FILE_WRITE | ||||
#endif | #endif | ||||
#include <FS.h> | #include <FS.h> |