mirror of
https://github.com/meshtastic/firmware.git
synced 2026-10-24 08:58:57 -04:00
Don't send NodeInfo and DeviceTelemetry at high Tx air util
Also move airtime checking to airtime class
This commit is contained in:
1 parent
d7a71e46aa
commit
fc775012ea
9 files changed
+43
-21
No files matched your search
@@ -73,10 +73,8 @@ int32_t RangeTestModule::runOnce()
|
||||
LOG_INFO("fixed_position() %d\n", config.position.fixed_position);
|
||||
|
||||
// Only send packets if the channel is less than 25% utilized.
|
||||
if (airTime->channelUtilizationPercent() < 25) {
|
||||
if (airTime->isTxAllowedChannelUtil(true)) {
|
||||
rangeTestModuleRadio->sendPayload();
|
||||
} else {
|
||||
LOG_WARN("RangeTest - Channel utilization is >25 percent. Skipping this opportunity to send.\n");
|
||||
}
|
||||
|
||||
return (senderHeartbeat);
|
||||
|
||||
Reference in new issue
Block a user