parent
e1f2cc7e68
commit
3f10452b40
|
@ -595,11 +595,6 @@ int ecx_srconfirm(ecx_portt *port, int idx, int timeout)
|
|||
wkc = ecx_waitinframe_red(port, idx, &timer2);
|
||||
/* wait for answer with WKC>=0 or otherwise retry until timeout */
|
||||
} while ((wkc <= EC_NOFRAME) && !osal_timer_is_expired (&timer1));
|
||||
/* if nothing received, clear buffer index status so it can be used again */
|
||||
if (wkc <= EC_NOFRAME)
|
||||
{
|
||||
ecx_setbufstat(port, idx, EC_BUF_EMPTY);
|
||||
}
|
||||
|
||||
return wkc;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue