The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

d/hdk: handle 0 bytes read

+3
+3
src/xrt/drivers/hdk/hdk_device.cpp
··· 135 135 } 136 136 hd->quat_valid = false; 137 137 return 0; 138 + } else if (bytesRead == 0) { 139 + HDK_WARN(hd, "Read 0 bytes from device"); 140 + return 1; 138 141 } 139 142 while (bytesRead > 0) { 140 143 if (bytesRead != MSG_LEN_LARGE && bytesRead != MSG_LEN_SMALL) {