Commit d91722fd authored by Davide Ciminaghi's avatar Davide Ciminaghi Committed by Alessandro Rubini

compliance: 7.7.2.4, enact portDS.logMinDelayReqInterval received from master

We just reinit timeouts on reception of a delay response This way the
delay request interval is reinitialized and set to the proper value.
parent 7d4554b9
......@@ -81,9 +81,9 @@ int pp_slave(struct pp_instance *ppi, unsigned char *pkt, int plen)
if (e)
goto out;
ppi->log_min_delay_req_interval =
DSPOR(ppi)->logMinDelayReqInterval =
hdr->logMessageInterval;
pp_timeout_init(ppi); /* new value for logMin */
} else {
pp_diag(ppi, frames, 2, "pp_slave : "
"Delay Resp doesn't match Delay Req\n");
......
......@@ -22,7 +22,7 @@ static struct timeout_config to_configs[__PP_TO_ARRAY_SIZE] = {
/* extension timeouts are explicitly set to a value */
};
/* Init fills the timeout values; they are not changed after program startup */
/* Init fills the timeout values */
void pp_timeout_init(struct pp_instance *ppi)
{
struct DSPort *port = ppi->portDS;
......
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