Skip to content

Commit 8d95792

Browse files
committed
Fix stupid comparison mistake in audio serial fallback
Signed-off-by: Benn Snyder <[email protected]>
1 parent 3bfc0a7 commit 8d95792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/usb_libusb10.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ FN_INTERNAL int fnusb_list_device_attributes(fnusb_ctx *ctx, struct freenect_dev
163163

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

0 commit comments

Comments
 (0)