Skip to content

Commit

Permalink
fix: silence incorrect audio serial warning to close #657
Browse files Browse the repository at this point in the history
Signed-off-by: Benn Snyder <benn.snyder@gmail.com>
  • Loading branch information
piedar committed Sep 19, 2022
1 parent 5b2a20e commit b9cb6bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -47,7 +47,7 @@ include (SetupDirectories)

set (PROJECT_VER_MAJOR 0)
set (PROJECT_VER_MINOR 6)
set (PROJECT_VER_PATCH 3)
set (PROJECT_VER_PATCH 4)
set (PROJECT_VER
"${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}.${PROJECT_VER_PATCH}")
set (PROJECT_APIVER
Expand Down
2 changes: 1 addition & 1 deletion src/usb_libusb10.c
Expand Up @@ -228,7 +228,7 @@ FN_INTERNAL int fnusb_list_device_attributes(freenect_context *ctx, struct freen
{
res = libusb_get_string_descriptor_ascii(audio_handle, audio_desc.iSerialNumber, serial, 256);
libusb_close(audio_handle);
if (res != 0)
if (res <= 0)
{
FN_WARNING("Failed to get audio serial of K4W or 1473 device: %s\n", libusb_error_name(res));
}
Expand Down

0 comments on commit b9cb6bd

Please sign in to comment.