Explorar el Código

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

main
PaulStoffregen hace 5 años
padre
commit
947085342f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/SD.h

+ 2
- 2
src/SD.h Ver fichero

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

Cargando…
Cancelar
Guardar