[VPU][XLink] Printf over XLink fails on OpenVINO 2021.4.2 - fix (#10099)
The XLinkReadDataWithTimeout() is used with and incorrect value for timeout parameter.
This commit is contained in:
parent
c4e54d882b
commit
6dd6fb6c12
@ -1412,8 +1412,8 @@ static void* debugConsoleThreadReader(void* ctx) {
|
||||
fprintfsock(connfd, "XLinkConsole receiving loop begins\n");
|
||||
fprintfsock(connfd, "=========================================\n");
|
||||
while(1){
|
||||
// use 0 as the timeout to prevent trigger false reset
|
||||
xerr = XLinkReadDataWithTimeout(streamId, &packet, 0);
|
||||
// use XLINK_NO_RW_TIMEOUT as the timeout to prevent trigger false reset
|
||||
xerr = XLinkReadDataWithTimeout(streamId, &packet, XLINK_NO_RW_TIMEOUT);
|
||||
if(X_LINK_SUCCESS != xerr || packet == NULL)
|
||||
break;
|
||||
fprintfsock(connfd, NULL, packet->data, packet->length);
|
||||
|
Loading…
Reference in New Issue
Block a user