Add RadioInterface::shouldRebroadcastEarlyLikeRouter and add CLIENT_BASE condition

This commit is contained in:
Mike Robbins
2025-09-05 14:26:06 -07:00
parent 484b4cd848
commit ab5332950c
2 changed files with 21 additions and 2 deletions

View File

@@ -180,6 +180,9 @@ class RadioInterface
/** The worst-case SNR_based packet delay */
uint32_t getTxDelayMsecWeightedWorst(float snr);
/** Returns true if we should rebroadcast early like a ROUTER */
bool shouldRebroadcastEarlyLikeRouter(meshtastic_MeshPacket *p);
/** The delay to use when we want to flood a message. Use a weighted scale based on SNR */
uint32_t getTxDelayMsecWeighted(float snr, meshtastic_MeshPacket *p);