Skip to content

Commit b9cb6bd

Browse files
committed
fix: silence incorrect audio serial warning to close #657
Signed-off-by: Benn Snyder <[email protected]>
1 parent 5b2a20e commit b9cb6bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ include (SetupDirectories)
4747

4848
set (PROJECT_VER_MAJOR 0)
4949
set (PROJECT_VER_MINOR 6)
50-
set (PROJECT_VER_PATCH 3)
50+
set (PROJECT_VER_PATCH 4)
5151
set (PROJECT_VER
5252
"${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}.${PROJECT_VER_PATCH}")
5353
set (PROJECT_APIVER

src/usb_libusb10.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ FN_INTERNAL int fnusb_list_device_attributes(freenect_context *ctx, struct freen
228228
{
229229
res = libusb_get_string_descriptor_ascii(audio_handle, audio_desc.iSerialNumber, serial, 256);
230230
libusb_close(audio_handle);
231-
if (res != 0)
231+
if (res <= 0)
232232
{
233233
FN_WARNING("Failed to get audio serial of K4W or 1473 device: %s\n", libusb_error_name(res));
234234
}

0 commit comments

Comments
 (0)