I have a strange error. I port my code from an arduino uno to ans ESP32. I use the SD library version 1.2.4
When I want to open a file with mode FILE_WRITE I receive a compiler error:
"message": "unsigned conversion from 'int' to 'uint8_t' {aka 'unsigned char'} changes value from '523' to '11' [-Woverflow]",
"startLineNumber": 24,
"startColumn": 48,
"endLineNumber": 24,
"endColumn": 48
(O_READ | O_WRITE | O_CREAT | O_APPEND) is defined in SdFat.h as
I have a strange error. I port my code from an arduino uno to ans ESP32. I use the SD library version 1.2.4
When I want to open a file with mode FILE_WRITE I receive a compiler error:
(O_READ | O_WRITE | O_CREAT | O_APPEND)
is defined in SdFat.h asShould be 23 (DEC)
I then tried to create the
FILE_WRITE
by myself and see in VSCode that it is expanded to:and this is 523 (DEC)
The used
O_CREATE
is from:.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\sys-include\sys\_default_fcntl.h
line 51:line 52:
line 12:
line 18:
This is from my
platformio.ini
:Installed is https://github.com/platformio/platform-espressif32 in version 6.6.0.