Rename to make function clearer

This commit is contained in:
Thomas Göttgens committed 2023-01-12 14:03:06 +01:00
1 parent bd51cbd721
commit bd2b766a36
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -132,10 +132,10 @@ bool AirTime::isTxAllowedChannelUtil(bool polite)
bool AirTime::isTxAllowedAirUtil()
{
if (!config.lora.override_duty_cycle && myRegion->dutyCycle < 100) {
if (utilizationTXPercent() < myRegion->dutyCycle * polite_tx_util_percent / 100) {
if (utilizationTXPercent() < myRegion->dutyCycle * polite_duty_cycle_percent / 100) {
return true;
} else {
LOG_WARN("Tx air utilization is >%d percent. Skipping this opportunity to send.\n", polite_tx_util_percent);
LOG_WARN("Tx air utilization is >%d percent. Skipping this opportunity to send.\n", myRegion->dutyCycle * polite_duty_cycle_percent / 100);
return false;
}
}