Skip to content

Commit 9470853

Browse files
Only undef FILE_READ & FILE_WRITE if they did not come from FS.h
1 parent 030244e commit 9470853

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SD.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
#include <Arduino.h>
2727
#include <SdFat.h>
2828
// Use FILE_READ & FILE_WRITE as defined by FS.h
29-
#ifdef FILE_READ
29+
#if defined(FILE_READ) && !defined(FS_H)
3030
#undef FILE_READ
3131
#endif
32-
#ifdef FILE_WRITE
32+
#if defined(FILE_WRITE) && !defined(FS_H)
3333
#undef FILE_WRITE
3434
#endif
3535
#include <FS.h>

0 commit comments

Comments
 (0)