浏览代码

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

main
PaulStoffregen 4 年前
父节点
当前提交
947085342f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/SD.h

+ 2
- 2
src/SD.h 查看文件

@@ -26,10 +26,10 @@
#include <Arduino.h>
#include <SdFat.h>
// Use FILE_READ & FILE_WRITE as defined by FS.h
#ifdef FILE_READ
#if defined(FILE_READ) && !defined(FS_H)
#undef FILE_READ
#endif
#ifdef FILE_WRITE
#if defined(FILE_WRITE) && !defined(FS_H)
#undef FILE_WRITE
#endif
#include <FS.h>

正在加载...
取消
保存