Merge pull request #246 from liamcottle/dev

Use identity key as default node name
Этот коммит содержится в:
ripplebiz
2025-05-06 10:39:58 +10:00
коммит произвёл GitHub
родитель dfe3561f39 8f32ee61ce
Коммит 6dd85880e4
+5
Просмотреть файл
@@ -869,6 +869,11 @@ public:
loadMainIdentity();
// use hex of first 4 bytes of identity public key as default node name
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")) {
loadPrefsInt("/new_prefs"); // new filename