Commit f4537a53 authored by Adam Wujek's avatar Adam Wujek

[BUG: #49] proto-standard/state-slave: fix the update of logMinDelayReqInterval

If logMinDelayReqInterval in incoming delay_response differs from the value
used locally, update it (see IEEE1588-2019 9.5.11.2 and 7.7.2.4).
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 2493797e
......@@ -169,7 +169,11 @@ static int slave_handle_response(struct pp_instance *ppi, void *buf,
ret=pp_servo_got_resp(ppi,1);
}
if ( ret && DSPOR(ppi)->logMinDelayReqInterval !=hdr->logMessageInterval) {
/* If logMinDelayReqInterval in incoming delay_response differs from
* the value used locally, update it
* (see IEEE1588-2019 9.5.11.2 and 7.7.2.4) */
if (!ret
&& DSPOR(ppi)->logMinDelayReqInterval != hdr->logMessageInterval) {
DSPOR(ppi)->logMinDelayReqInterval = hdr->logMessageInterval;
/* new value for logMin */
pp_timeout_init(ppi);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment