mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-08 13:41:28 +00:00
Try fix repeatedly getting a new NodeNum (#4670)
This commit is contained in:
parent
106dab23db
commit
4ed12bf21d
@ -121,6 +121,8 @@ NodeDB::NodeDB()
|
|||||||
owner.hw_model = HW_VENDOR;
|
owner.hw_model = HW_VENDOR;
|
||||||
// Ensure user (nodeinfo) role is set to whatever we're configured to
|
// Ensure user (nodeinfo) role is set to whatever we're configured to
|
||||||
owner.role = config.device.role;
|
owner.role = config.device.role;
|
||||||
|
// Ensure macaddr is set to our macaddr as it will be copied in our info below
|
||||||
|
memcpy(owner.macaddr, ourMacAddr, sizeof(owner.macaddr));
|
||||||
|
|
||||||
// Include our owner in the node db under our nodenum
|
// Include our owner in the node db under our nodenum
|
||||||
meshtastic_NodeInfoLite *info = getOrCreateMeshNode(getNodeNum());
|
meshtastic_NodeInfoLite *info = getOrCreateMeshNode(getNodeNum());
|
||||||
|
Loading…
Reference in New Issue
Block a user