[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:
Daria Mityagina 2022-02-09 11:30:29 +03:00 committed by GitHub
parent c4e54d882b
commit 6dd6fb6c12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1412,8 +1412,8 @@ static void* debugConsoleThreadReader(void* ctx) {
fprintfsock(connfd, "XLinkConsole receiving loop begins\n"); fprintfsock(connfd, "XLinkConsole receiving loop begins\n");
fprintfsock(connfd, "=========================================\n"); fprintfsock(connfd, "=========================================\n");
while(1){ while(1){
// use 0 as the timeout to prevent trigger false reset // use XLINK_NO_RW_TIMEOUT as the timeout to prevent trigger false reset
xerr = XLinkReadDataWithTimeout(streamId, &packet, 0); xerr = XLinkReadDataWithTimeout(streamId, &packet, XLINK_NO_RW_TIMEOUT);
if(X_LINK_SUCCESS != xerr || packet == NULL) if(X_LINK_SUCCESS != xerr || packet == NULL)
break; break;
fprintfsock(connfd, NULL, packet->data, packet->length); fprintfsock(connfd, NULL, packet->data, packet->length);