Browse Source

fix dep includes

main
John Robinson 3 years ago
parent
commit
3bcc541545
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      src/sd/SD.cpp
  2. +3
    -3
      src/sd/SD.h

+ 1
- 1
src/sd/SD.cpp View File

* THE SOFTWARE. * THE SOFTWARE.
*/ */


#include <Arduino.h>
#include <core/Arduino.h>
#include <sd/SD.h> #include <sd/SD.h>


SDClass SD; SDClass SD;

+ 3
- 3
src/sd/SD.h View File

#ifndef __SD_H__ #ifndef __SD_H__
#define __SD_H__ #define __SD_H__


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


#if defined(__MK64FX512__) || defined(__MK66FX1M0__) || defined(__IMXRT1062__) #if defined(__MK64FX512__) || defined(__MK66FX1M0__) || defined(__IMXRT1062__)
#define BUILTIN_SDCARD 254 #define BUILTIN_SDCARD 254

Loading…
Cancel
Save