DHB bug
This commit is contained in:
parent
62f638a3d2
commit
3de0ae5a48
@ -517,16 +517,16 @@ ReturnValue_t DeviceHandlerBase::updatePeriodicReply(bool enable, DeviceCommandI
|
|||||||
if (enable) {
|
if (enable) {
|
||||||
info->active = true;
|
info->active = true;
|
||||||
if (info->countdown != nullptr) {
|
if (info->countdown != nullptr) {
|
||||||
info->delayCycles = info->maxDelayCycles;
|
|
||||||
} else {
|
|
||||||
info->countdown->resetTimer();
|
info->countdown->resetTimer();
|
||||||
|
} else {
|
||||||
|
info->delayCycles = info->maxDelayCycles;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
info->active = false;
|
info->active = false;
|
||||||
if (info->countdown != nullptr) {
|
if (info->countdown != nullptr) {
|
||||||
info->delayCycles = 0;
|
|
||||||
} else {
|
|
||||||
info->countdown->timeOut();
|
info->countdown->timeOut();
|
||||||
|
} else {
|
||||||
|
info->delayCycles = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user