Commit 2493797e authored by Adam Wujek's avatar Adam Wujek

proto-standard/state-slave: don't change minDelayReqInterval timeout

The intention of the removed code was to speed up the receive of the first
delay_resp frame by changing the minDelayReqInterval timeout, that
triggers the issue of delay_req. The timeout was reduced to half, but
later never restored to the intentional value.
Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent b70b7926
......@@ -44,13 +44,6 @@ static int slave_handle_sync(struct pp_instance *ppi, void *buf,
return 0;
}
if ( is_delayMechanismE2E(ppi) && ppi->t1.scaled_nsecs==0 && ppi->t1.secs==0 ) {
/* First time we receive the SYNC message in uncalib/slave state
* We set the REQUEST time-out to the minDelayReqInterval/2 value (500ms)
* in order to provide quickly a DelayReq message
*/
pp_timeout_set(ppi, PP_TO_REQUEST, (1000*(1<<PP_MIN_MIN_DELAY_REQ_INTERVAL))/2);
}
/* t2 may be overriden by follow-up, save it immediately */
ppi->t2 = ppi->last_rcv_time;
msg_unpack_sync(buf, &sync);
......
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