Browse Source

Only undef FILE_READ & FILE_WRITE if they did not come from FS.h

main
PaulStoffregen 4 years ago
parent
commit
947085342f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/SD.h

+ 2
- 2
src/SD.h View File

#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>

Loading…
Cancel
Save