Skip to content

Commit

Permalink
Fix stupid comparison mistake in audio serial fallback
Browse files Browse the repository at this point in the history
Signed-off-by: Benn Snyder <[email protected]>
  • Loading branch information
piedar committed Jul 23, 2014
1 parent 3bfc0a7 commit 8d95792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_libusb10.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ FN_INTERNAL int fnusb_list_device_attributes(fnusb_ctx *ctx, struct freenect_dev

// K4W and 1473 don't provide a camera serial; use audio serial instead.
const char* const K4W_1473_SERIAL = "0000000000000000";
if (strncmp((const char*)serial, K4W_1473_SERIAL, 16) != 0)
if (strncmp((const char*)serial, K4W_1473_SERIAL, 16) == 0)
{
libusb_device* audio_device = fnusb_find_connected_audio_device(camera_device, devs, count);

Expand Down

0 comments on commit 8d95792

Please sign in to comment.