sforkowany z mirror/meshtastic-firmware
Ignore Band power limits for licensed HAMs
rodzic
3d9633a56c
commit
16444c190d
|
@ -416,7 +416,7 @@ void RadioInterface::applyModemConfig()
|
|||
power = loraConfig.tx_power;
|
||||
assert(myRegion); // Should have been found in init
|
||||
|
||||
if ((power == 0) || (power > myRegion->powerLimit))
|
||||
if ((power == 0) || ((power > myRegion->powerLimit) && !devicestate.owner.is_licensed))
|
||||
power = myRegion->powerLimit;
|
||||
|
||||
if (power == 0)
|
||||
|
@ -460,7 +460,7 @@ void RadioInterface::limitPower()
|
|||
if (myRegion->powerLimit)
|
||||
maxPower = myRegion->powerLimit;
|
||||
|
||||
if (power > maxPower) {
|
||||
if ((power > maxPower) && !devicestate.owner.is_licensed) {
|
||||
DEBUG_MSG("Lowering transmit power because of regulatory limits\n");
|
||||
power = maxPower;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue