This commit is contained in:
Robin Müller 2022-09-29 17:20:18 +02:00
parent 227535c461
commit b9d0ff8fb7
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
1 changed files with 4 additions and 4 deletions

View File

@ -526,16 +526,16 @@ ReturnValue_t DeviceHandlerBase::updatePeriodicReply(bool enable, DeviceCommandI
if (enable) {
info->active = true;
if (info->countdown != nullptr) {
info->delayCycles = info->maxDelayCycles;
} else {
info->countdown->resetTimer();
} else {
info->delayCycles = info->maxDelayCycles;
}
} else {
info->active = false;
if (info->countdown != nullptr) {
info->delayCycles = 0;
} else {
info->countdown->timeOut();
} else {
info->delayCycles = 0;
}
}
}