[LoRaWAN] Fixed duty cycle enable ignored (CI_BUILD_ALL)
This commit is contained in:
parent
8c1d0521c5
commit
e392c7b91f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue