* T1000e BLE - default node name is now the MAC address

Este commit está contenido en:
Scott Powell
2026-01-23 15:53:58 +11:00
padre 616eb57b16
commit 3c27132914
Se han modificado 7 ficheros con 47 adiciones y 17 borrados
+4 -4
Ver fichero
@@ -815,14 +815,14 @@ void MyMesh::begin(bool has_display) {
_store->saveMainIdentity(self_id);
}
// if name is provided as a build flag, use that as default node name instead
#ifdef ADVERT_NAME
strcpy(_prefs.node_name, ADVERT_NAME);
#else
// 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);
// if name is provided as a build flag, use that as default node name instead
#ifdef ADVERT_NAME
strcpy(_prefs.node_name, ADVERT_NAME);
#endif
// load persisted prefs