diff --git a/src/airtime.cpp b/src/airtime.cpp index ae3b30811..94ef6d5b2 100644 --- a/src/airtime.cpp +++ b/src/airtime.cpp @@ -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); diff --git a/src/airtime.h b/src/airtime.h index 2d1f1e2d9..5ba6f676a 100644 --- a/src/airtime.h +++ b/src/airtime.h @@ -70,7 +70,7 @@ class AirTime : private concurrency::OSThread uint32_t secSinceBoot = 0; uint8_t max_channel_util_percent = 40; uint8_t polite_channel_util_percent = 25; - uint8_t polite_tx_util_percent = 5; + uint8_t polite_tx_util_percent = 50; // half of Duty Cycle allowance struct airtimeStruct { uint32_t periodTX[PERIODS_TO_LOG]; // AirTime transmitted