fix possible race condition as for win32

See aed0f81724
pull/286/head^2
Hans-Erik Floryd 2019-05-10 10:41:57 +02:00
parent e1f2cc7e68
commit 3f10452b40
1 changed files with 0 additions and 5 deletions

View File

@ -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;
}