mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* IdentityStore::save() was failing on RAK.
* Repeater: CLI 'erase' command added.
This commit is contained in:
parent
a0bb332ce5
commit
29e62b9ce2
5 changed files with 23 additions and 3 deletions
|
|
@ -301,7 +301,11 @@ public:
|
|||
|
||||
BaseChatMesh::begin();
|
||||
|
||||
#if defined(NRF52_PLATFORM)
|
||||
IdentityStore store(fs, "");
|
||||
#else
|
||||
IdentityStore store(fs, "/identity");
|
||||
#endif
|
||||
if (!store.load("_main", self_id, _prefs.node_name, sizeof(_prefs.node_name))) { // legacy: node_name was from identity file
|
||||
self_id = mesh::LocalIdentity(getRNG()); // create new random identity
|
||||
store.save("_main", self_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue