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
2023-02-15 19:31:09 +01:00
parent 5ca3d9169a
commit b7895f7038
4 changed files with 33 additions and 11 deletions

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;