Possible bugfix in DHB
The delayCycles variables needs to be initialized differently for periodic replies. It is initialized to the maxDelayCycles value now
This commit is contained in:
parent
2d667cfb95
commit
a6d744c9c8
@ -430,7 +430,12 @@ ReturnValue_t DeviceHandlerBase::insertInReplyMap(DeviceCommandId_t replyId,
|
||||
DeviceReplyInfo info;
|
||||
info.maxDelayCycles = maxDelayCycles;
|
||||
info.periodic = periodic;
|
||||
if(info.periodic) {
|
||||
info.delayCycles = info.maxDelayCycles;
|
||||
}
|
||||
else {
|
||||
info.delayCycles = 0;
|
||||
}
|
||||
info.replyLen = replyLen;
|
||||
info.dataSet = dataSet;
|
||||
info.command = deviceCommandMap.end();
|
||||
|
Loading…
Reference in New Issue
Block a user