From 4cc865de5480591587b9b1a6ac9eb5bab4ccb6d1 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 15 Oct 2012 15:55:44 -0700 Subject: [PATCH] Swapped constant names for HackRF VID and PID. Fortunately, I also had them backward in my call to libusb... Now the names are right! --- host/usb_test/usb_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/host/usb_test/usb_test.c b/host/usb_test/usb_test.c index c984898c..33bc9979 100644 --- a/host/usb_test/usb_test.c +++ b/host/usb_test/usb_test.c @@ -31,8 +31,8 @@ #include -const uint16_t hackrf_usb_pid = 0x1d50; -const uint16_t hackrf_usb_vid = 0x604b; +const uint16_t hackrf_usb_vid = 0x1d50; +const uint16_t hackrf_usb_pid = 0x604b; typedef enum { TRANSCEIVER_MODE_RX, @@ -77,7 +77,7 @@ libusb_device_handle* open_device(libusb_context* const context) { return NULL; } - libusb_device_handle* device = libusb_open_device_with_vid_pid(context, hackrf_usb_pid, hackrf_usb_vid); + libusb_device_handle* device = libusb_open_device_with_vid_pid(context, hackrf_usb_vid, hackrf_usb_pid); if( device == NULL ) { printf("libusb_open_device_with_vid_pid() failed\n"); return NULL;