oops - we were not saving radio state

This commit is contained in:
geeksville 2020-06-06 08:07:21 -07:00
parent 5915669f6f
commit 8d14e97dfa

View File

@ -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);