mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-23 03:00:56 +00:00
Chance calculation for Nice TX. Still same value but dynamically based on duty cycle.
This commit is contained in:
@@ -132,7 +132,7 @@ bool AirTime::isTxAllowedChannelUtil(bool polite)
|
||||
bool AirTime::isTxAllowedAirUtil()
|
||||
{
|
||||
if (!config.lora.override_duty_cycle && myRegion->dutyCycle < 100) {
|
||||
if (utilizationTXPercent() < polite_tx_util_percent) {
|
||||
if (utilizationTXPercent() < myRegion->dutyCycle * polite_tx_util_percent / 100) {
|
||||
return true;
|
||||
} else {
|
||||
LOG_WARN("Tx air utilization is >%d percent. Skipping this opportunity to send.\n", polite_tx_util_percent);
|
||||
|
||||
Reference in New Issue
Block a user