* IdentityStore::save() was failing on RAK.

* Repeater: CLI 'erase' command added.
This commit is contained in:
Scott Powell 2025-02-04 01:35:04 +11:00
parent a0bb332ce5
commit 29e62b9ce2
5 changed files with 23 additions and 3 deletions

View file

@ -45,10 +45,12 @@ bool IdentityStore::save(const char *name, const mesh::LocalIdentity& id) {
File file = _fs->open(filename, "w", true);
#endif
if (file) {
id.writeTo(file);
bool success = id.writeTo(file);
file.close();
MESH_DEBUG_PRINTLN("IdentityStore::save() write - %s", success ? "OK" : "Err");
return true;
}
MESH_DEBUG_PRINTLN("IdentityStore::save() failed");
return false;
}