[LoRaWAN] Fixed duty cycle enable ignored (CI_BUILD_ALL)

This commit is contained in:
jgromes 2024-01-14 16:31:24 +01:00
parent 8c1d0521c5
commit e392c7b91f

View file

@ -1884,7 +1884,7 @@ void LoRaWANNode::setADR(bool enable) {
}
void LoRaWANNode::setDutyCycle(bool enable, uint32_t msPerHour) {
this->dutyCycleEnabled = true;
this->dutyCycleEnabled = enable;
if(msPerHour <= 0) {
this->dutyCycle = this->band->dutyCycle;
} else {