mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
no need for prefs check before prefs are loaded
This commit is contained in:
parent
0bccf29f64
commit
8f32ee61ce
1 changed files with 3 additions and 5 deletions
|
|
@ -848,11 +848,9 @@ public:
|
|||
loadMainIdentity();
|
||||
|
||||
// use hex of first 4 bytes of identity public key as default node name
|
||||
if(strcmp(_prefs.node_name, "NONAME") == 0){
|
||||
char pub_key_hex[10];
|
||||
mesh::Utils::toHex(pub_key_hex, self_id.pub_key, 4);
|
||||
strcpy(_prefs.node_name, pub_key_hex);
|
||||
}
|
||||
char pub_key_hex[10];
|
||||
mesh::Utils::toHex(pub_key_hex, self_id.pub_key, 4);
|
||||
strcpy(_prefs.node_name, pub_key_hex);
|
||||
|
||||
// load persisted prefs
|
||||
if (_fs->exists("/new_prefs")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue