| 348 | } |
| 349 | |
| 350 | int FileSystem::flush(FileHandle file) |
| 351 | { |
| 352 | CHECK_MOUNTED() |
| 353 | |
| 354 | int res = flushMeta(file); |
| 355 | int err = SPIFFS_fflush(handle(), file); |
| 356 | if(err < 0) { |
| 357 | res = translateSpiffsError(err); |
| 358 | } |
| 359 | partition.sync(); |
| 360 | return res; |
| 361 | } |
| 362 | |
| 363 | int FileSystem::read(FileHandle file, void* data, size_t size) |
| 364 | { |
no test coverage detected