add flush to filesystem before closing write file.

This commit is contained in:
Thomas Göttgens
2023-04-14 10:55:05 +02:00
parent b43a5bc4f8
commit 309d4fc7f2
5 changed files with 12 additions and 2 deletions

View File

@@ -490,6 +490,7 @@ bool NodeDB::saveProto(const char *filename, size_t protoSize, const pb_msgdesc_
} else {
okay = true;
}
f.flush();
f.close();
// brief window of risk here ;-)