we now show correct usernames in the nodeinfo screens

This commit is contained in:
geeksville
2020-02-11 10:51:45 -08:00
parent 3e773526b7
commit 6dc17bdfde
2 changed files with 75 additions and 16 deletions

View File

@@ -43,6 +43,8 @@ public:
NodeNum getNodeNum() { return myNodeInfo.my_node_num; }
size_t getNumNodes() { return *numNodes; }
/// if returns false, that means our node should send a DenyNodeNum response. If true, we think the number is okay for use
// bool handleWantNodeNum(NodeNum n);
@@ -65,6 +67,8 @@ public:
/// Find a node in our DB, return null for missing
NodeInfo *getNode(NodeNum n);
NodeInfo *getNodeByIndex(size_t x) { assert(x < *numNodes); return &nodes[x]; }
private:
/// Find a node in our DB, create an empty NodeInfo if missing