The comparison if (*bw < 0) in LITTLEFS_write(..) will always yield false, because *bw is an unsigned pointer. Same for the read function.
This yields to SYS_FS_FileError(..) returning a no-error state when LITTLEFS_read()/LITTLEFS_write() have been failed.
This also fixes the missing mapping from the LittleFS error code to the Harmony error code in LITTLEFS_read().
The comparison
if (*bw < 0)
inLITTLEFS_write(..)
will always yield false, because*bw
is an unsigned pointer. Same for the read function. This yields toSYS_FS_FileError(..)
returning a no-error state whenLITTLEFS_read()
/LITTLEFS_write()
have been failed.This also fixes the missing mapping from the LittleFS error code to the Harmony error code in
LITTLEFS_read()
.