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
469eba3ce2
commit
924c150af2
@ -430,7 +430,12 @@ ReturnValue_t DeviceHandlerBase::insertInReplyMap(DeviceCommandId_t replyId,
|
|||||||
DeviceReplyInfo info;
|
DeviceReplyInfo info;
|
||||||
info.maxDelayCycles = maxDelayCycles;
|
info.maxDelayCycles = maxDelayCycles;
|
||||||
info.periodic = periodic;
|
info.periodic = periodic;
|
||||||
|
if(info.periodic) {
|
||||||
|
info.delayCycles = info.maxDelayCycles;
|
||||||
|
}
|
||||||
|
else {
|
||||||
info.delayCycles = 0;
|
info.delayCycles = 0;
|
||||||
|
}
|
||||||
info.replyLen = replyLen;
|
info.replyLen = replyLen;
|
||||||
info.dataSet = dataSet;
|
info.dataSet = dataSet;
|
||||||
info.command = deviceCommandMap.end();
|
info.command = deviceCommandMap.end();
|
||||||
|
Loading…
Reference in New Issue
Block a user