EIVE upstream #29

Merged
muellerr merged 693 commits from use-eive-upstream into develop 2023-06-30 15:44:39 +02:00
Showing only changes of commit b9d0ff8fb7 - Show all commits

View File

@ -526,16 +526,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;
} }
} }
} }