-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Closed
Description
See also this discussion: b1da9ed#r32622483
@devyte asked to open an issue about this.
In pull request #5525 there has been a new function added to the File
class:
Lines 82 to 83 in b1da9ed
// Arduino "class SD" methods for compatibility | |
size_t write(const char *str) { return write((const uint8_t*)str, strlen(str)); } |
This function causes compiler issues on Linux.
In file included from /home/gijs/GitHub/letscontrolit/ESPEasy/src/ESPEasy.ino:86:0:
/home/gijs/GitHub/letscontrolit/ESPEasy/src/ESPEasyStorage.ino: In function 'String ClearInFile(char*, int, int)':
/home/gijs/GitHub/letscontrolit/ESPEasy/src/ESPEasyStorage.ino:679:30: error: call of overloaded 'write(unsigned int)' is ambiguous
SPIFFS_CHECK(f.write(0), fname);
^
In short, this new function makes it impossible to use the existing function write(uint8_t)
Lines 55 to 56 in b1da9ed
size_t write(uint8_t) override; | |
size_t write(const uint8_t *buf, size_t size) override; |
Metadata
Metadata
Assignees
Labels
No labels