mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 10:21:40 +00:00
Bump minimum NodeInfo send to 5 minutes (#3423)
* Bump minimum NodeInfo send to 3 minutes * 5
This commit is contained in:
parent
13cc1b0252
commit
e27f029d09
@ -58,8 +58,8 @@ void NodeInfoModule::sendOurNodeInfo(NodeNum dest, bool wantReplies, uint8_t cha
|
|||||||
meshtastic_MeshPacket *NodeInfoModule::allocReply()
|
meshtastic_MeshPacket *NodeInfoModule::allocReply()
|
||||||
{
|
{
|
||||||
uint32_t now = millis();
|
uint32_t now = millis();
|
||||||
// If we sent our NodeInfo less than 1 min. ago, don't send it again as it may be still underway.
|
// If we sent our NodeInfo less than 5 min. ago, don't send it again as it may be still underway.
|
||||||
if (lastSentToMesh && (now - lastSentToMesh) < 60 * 1000) {
|
if (lastSentToMesh && (now - lastSentToMesh) < (5 * 60 * 1000)) {
|
||||||
LOG_DEBUG("Sending NodeInfo will be ignored since we just sent it.\n");
|
LOG_DEBUG("Sending NodeInfo will be ignored since we just sent it.\n");
|
||||||
ignoreRequest = true; // Mark it as ignored for MeshModule
|
ignoreRequest = true; // Mark it as ignored for MeshModule
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user