readability improvement

This commit is contained in:
Robin Müller 2020-07-09 16:54:18 +02:00
parent 0cdce6e327
commit da30680d04

View File

@ -228,7 +228,7 @@ void DeviceHandlerBase::decrementDeviceReplyMap() {
if (iter->second.delayCycles != 0) {
iter->second.delayCycles--;
if (iter->second.delayCycles == 0) {
if (iter->second.periodic != 0) {
if (iter->second.periodic) {
iter->second.delayCycles = iter->second.maxDelayCycles;
}
replyToReply(iter, TIMEOUT);