From 8d14e97dfaf52372303c99b037204ecf3d49f6ed Mon Sep 17 00:00:00 2001 From: geeksville Date: Sat, 6 Jun 2020 08:07:21 -0700 Subject: [PATCH] oops - we were not saving radio state --- src/mesh/NodeDB.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp index 0fee4b7b2..46560de44 100644 --- a/src/mesh/NodeDB.cpp +++ b/src/mesh/NodeDB.cpp @@ -114,7 +114,6 @@ void NodeDB::init() devicestate.has_my_node = true; devicestate.has_radio = true; devicestate.has_owner = true; - devicestate.has_radio = false; devicestate.radio.has_channel_settings = true; devicestate.radio.has_preferences = true; devicestate.node_db_count = 0; @@ -137,7 +136,7 @@ void NodeDB::init() memcpy(owner.macaddr, ourMacAddr, sizeof(owner.macaddr)); sprintf(owner.long_name, "Unknown %02x%02x", ourMacAddr[4], ourMacAddr[5]); - // Crummy guess at our nodenum + // Crummy guess at our nodenum (but we will check against the nodedb to avoid conflicts) pickNewNodeNum(); sprintf(owner.short_name, "?%02X", myNodeInfo.my_node_num & 0xff);