mirror of
https://github.com/pellepl/spiffs.git
synced 2026-09-19 15:40:03 +00:00
Merge pull request #7 from nodemcu/master
fix SPIFFS_read length when reading beyond file size
This commit is contained in:
@@ -241,6 +241,7 @@ s32_t SPIFFS_read(spiffs *fs, spiffs_file fh, void *buf, s32_t len) {
|
||||
return avail;
|
||||
} else {
|
||||
SPIFFS_API_CHECK_RES_UNLOCK(fs, res);
|
||||
len = avail;
|
||||
}
|
||||
} else {
|
||||
// reading within file size
|
||||
|
||||
Reference in New Issue
Block a user