MCPcopy Create free account
hub / github.com/SmingHub/Sming / flush

Method flush

Sming/Libraries/Spiffs/src/FileSystem.cpp:350–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350int 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
363int FileSystem::read(FileHandle file, void* data, size_t size)
364{

Callers 1

sendCommandMethod · 0.45

Calls 2

translateSpiffsErrorFunction · 0.85
syncMethod · 0.45

Tested by

no test coverage detected