mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Correct opens to use "w" filemode instead of "w+" filemode.
This commit is contained in:
parent
b1c8963e1e
commit
4d9964ff98
3 changed files with 8 additions and 8 deletions
|
|
@ -50,7 +50,7 @@ bool IdentityStore::save(const char *name, const mesh::LocalIdentity& id) {
|
|||
File file = _fs->open(filename, FILE_O_WRITE);
|
||||
if (file) { file.seek(0); file.truncate(); }
|
||||
#elif defined(RP2040_PLATFORM)
|
||||
File file = _fs->open(filename, "w+");
|
||||
File file = _fs->open(filename, "w");
|
||||
#else
|
||||
File file = _fs->open(filename, "w", true);
|
||||
#endif
|
||||
|
|
@ -72,7 +72,7 @@ bool IdentityStore::save(const char *name, const mesh::LocalIdentity& id, const
|
|||
File file = _fs->open(filename, FILE_O_WRITE);
|
||||
if (file) { file.seek(0); file.truncate(); }
|
||||
#elif defined(RP2040_PLATFORM)
|
||||
File file = _fs->open(filename, "w+");
|
||||
File file = _fs->open(filename, "w");
|
||||
#else
|
||||
File file = _fs->open(filename, "w", true);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue