Sanity check for sending NodeInfo
Don't send it if we've done so less than 1 min. ago
This commit is contained in:
1 parent
5ca3d9169a
commit
b7895f7038
4 files changed
+33
-11
No files matched your search
@@ -35,6 +35,9 @@ class NodeInfoModule : public ProtobufModule<meshtastic_User>, private concurren
|
||||
|
||||
/** Does our periodic broadcast */
|
||||
virtual int32_t runOnce() override;
|
||||
|
||||
private:
|
||||
uint32_t lastSentToMesh = 0; // Last time we sent our NodeInfo to the mesh
|
||||
};
|
||||
|
||||
extern NodeInfoModule *nodeInfoModule;
|
||||
Reference in new issue
Block a user