[LoRaWAN] Fixed duty cycle enable ignored (CI_BUILD_ALL)

pull/936/head
jgromes 2024-01-14 16:31:24 +01:00
rodzic 8c1d0521c5
commit e392c7b91f
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 {