kopia lustrzana https://github.com/jgromes/RadioLib
[LoRaWAN] Fixed duty cycle enable ignored (CI_BUILD_ALL)
rodzic
8c1d0521c5
commit
e392c7b91f
|
@ -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 {
|
||||
|
|
Ładowanie…
Reference in New Issue