Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

SDFAT Adafruit Fork. compilation warning with ESP32
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

SDFAT Adafruit Fork. compilation warning with ESP32

by vmath54 on Tue Feb 25, 2020 4:48 pm

environment : PlatformIO with esp32dev board
when compiling a project using the 'SdFat - Adafruit Fork' library, there are many similar warnings; here is an example:

src/FatLib/FatApiConstants.h: 47: 0: warning: "O_RDONLY" redefined

It is possible to correct, by inserting the following 2 lines in SdFatConfig.h file, after line 101:

Code: Select all | TOGGLE FULL SIZE
93   #if defined(__AVR__)
94   // AVR fcntl.h does not define open flags.
95   #define USE_FCNTL_H 0
96   #elif defined(PLATFORM_ID)
97   // Particle boards - use fcntl.h.
98   #define USE_FCNTL_H 1
99   #elif defined(__arm__)
100 // ARM gcc defines open flags.
101 #define USE_FCNTL_H 1
102 #elif defined(ESP32)
103 #define USE_FCNTL_H 1
104 #else  // defined(__AVR__)
105 #define USE_FCNTL_H O
106 #endif  // defined(__AVR__)


Can you make the correction to the library ?

Bill Greiman, Developper from SdFat library, made the correction in release 1.1.2 :
See https://github.com/greiman/SdFat/blob/m ... atConfig.h

Thank you

Vincent

vmath54
 
Posts: 2
Joined: Tue Feb 25, 2020 4:45 pm

Re: SDFAT Adafruit Fork. compilation warning with ESP32

by vmath54 on Wed Mar 18, 2020 9:59 am

no answer ...

vmath54
 
Posts: 2
Joined: Tue Feb 25, 2020 4:45 pm

Please be positive and constructive with your questions and comments.