Remove shorterTimeout check for NodeInfo sending

Shout out to @Xaositek for catching this one
This commit is contained in:
Jonathan Bennett
2026-01-18 21:41:15 -06:00
committed by GitHub
parent 4a5640b53d
commit 65ba235360

View File

@@ -139,7 +139,7 @@ meshtastic_MeshPacket *NodeInfoModule::allocReply()
}
// If we sent our NodeInfo less than 5 min. ago, don't send it again as it may be still underway.
if (!shorterTimeout && lastSentToMesh && Throttle::isWithinTimespanMs(lastSentToMesh, timeout_min * 60 * 1000)) {
if (lastSentToMesh && Throttle::isWithinTimespanMs(lastSentToMesh, timeout_min * 60 * 1000)) {
LOG_DEBUG("Skip send NodeInfo since we sent it <%umin ago", timeout_min);
ignoreRequest = true; // Mark it as ignored for MeshModule
return NULL;
@@ -208,4 +208,4 @@ int32_t NodeInfoModule::runOnce()
sendOurNodeInfo(NODENUM_BROADCAST, requestReplies); // Send our info (don't request replies)
}
return Default::getConfiguredOrDefaultMs(config.device.node_info_broadcast_secs, default_node_info_broadcast_secs);
}
}