mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-03 19:29:57 +00:00
Merge pull request #908 from a-f-G-U-C/owner-update
fix owner name update issue (off #900)
This commit is contained in:
commit
51646f28ec
@ -112,7 +112,11 @@ bool MeshService::reloadConfig()
|
|||||||
/// The owner User record just got updated, update our node DB and broadcast the info into the mesh
|
/// The owner User record just got updated, update our node DB and broadcast the info into the mesh
|
||||||
void MeshService::reloadOwner()
|
void MeshService::reloadOwner()
|
||||||
{
|
{
|
||||||
|
// DEBUG_MSG("reloadOwner()\n");
|
||||||
|
// update our local data directly
|
||||||
|
nodeDB.updateUser(nodeDB.getNodeNum(), owner);
|
||||||
assert(nodeInfoPlugin);
|
assert(nodeInfoPlugin);
|
||||||
|
// update everyone else
|
||||||
if (nodeInfoPlugin)
|
if (nodeInfoPlugin)
|
||||||
nodeInfoPlugin->sendOurNodeInfo();
|
nodeInfoPlugin->sendOurNodeInfo();
|
||||||
nodeDB.saveToDisk();
|
nodeDB.saveToDisk();
|
||||||
|
Loading…
Reference in New Issue
Block a user