diff --git a/cores/esp8266/FS.cpp b/cores/esp8266/FS.cpp index f897a52d1d..a6199bb11f 100644 --- a/cores/esp8266/FS.cpp +++ b/cores/esp8266/FS.cpp @@ -68,7 +68,7 @@ int File::read() { size_t File::read(uint8_t* buf, size_t size) { if (!_p) - return -1; + return 0; return _p->read(buf, size); }