include our local user in the node db

This commit is contained in:
geeksville
2020-02-04 09:00:17 -08:00
parent b04fb061c4
commit b538677ad2
6 changed files with 60 additions and 49 deletions

View File

@@ -10,7 +10,7 @@ class NodeDB
{
// NodeNum provisionalNodeNum; // if we are trying to find a node num this is our current attempt
NodeNum ourNodeNum;
NodeNum ourNodeNum = 0;
// A NodeInfo for every node we've seen
// Eventually use a smarter datastructure
@@ -28,6 +28,9 @@ public:
/// instead just store in flash - possibly even in the initial alpha release do this hack
NodeDB();
/// Called from service after app start, to do init which can only be done after OS load
void init();
/// given a subpacket sniffed from the network, update our DB state
/// we updateGUI and updateGUIforNode if we think our this change is big enough for a redraw
void updateFrom(const MeshPacket &p);