diff --git a/api/src/common/components/XLinkConsole/pc/XLinkConsole.c b/api/src/common/components/XLinkConsole/pc/XLinkConsole.c index 8e46f04..07586b6 100644 --- a/api/src/common/components/XLinkConsole/pc/XLinkConsole.c +++ b/api/src/common/components/XLinkConsole/pc/XLinkConsole.c @@ -27,6 +27,7 @@ #include #include #include +#include #define MVLOG_UNIT_NAME xLinkConsole #include "mvLog.h" @@ -38,8 +39,8 @@ void* shellThreadWriter(void* ctx){ int connfd = (streamId_t)context[1]; while(1){ - char str[100]; - int bytes = read(connfd,str, 100); + uint8_t str[100]; + int bytes = read(connfd, str, 100); if (bytes > 0){ XLinkWriteData(cId, str, bytes); }else