DHB update

This commit is contained in:
Robin Müller 2021-06-15 15:01:02 +02:00
parent aa1bfcbb96
commit 1c7c532ef6
No known key found for this signature in database
GPG Key ID: 9C287E88FED11DF3
1 changed files with 8 additions and 8 deletions

View File

@ -226,15 +226,15 @@ ReturnValue_t DeviceHandlerBase::initialize() {
}
void DeviceHandlerBase::decrementDeviceReplyMap() {
for (auto pair: deviceReplyMap) {
if (pair.second.delayCycles != 0) {
pair.second.delayCycles--;
if (pair.second.delayCycles == 0) {
if (pair.second.periodic) {
pair.second.delayCycles = pair.second.maxDelayCycles;
for (auto replyPair: deviceReplyMap) {
if (replyPair.second.delayCycles != 0) {
replyPair.second.delayCycles--;
if (replyPair.second.delayCycles == 0) {
if (replyPair.second.periodic) {
replyPair.second.delayCycles = replyPair.second.maxDelayCycles;
}
replyToReply(pair.first, pair.second, TIMEOUT);
missedReply(pair.first);
replyToReply(replyPair.first, replyPair.second, TIMEOUT);
missedReply(replyPair.first);
}
}
}