Sanity check for sending NodeInfo

Don't send it if we've done so less than 1 min. ago
This commit is contained in:
GUVWAF committed 2023-02-15 19:31:09 +01:00
1 parent 5ca3d9169a
commit b7895f7038
4 files changed
+33 -11

No files matched your search

+3
View File
@@ -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;