Skip to content

Commit 4f685d8

Browse files
committed
fix device_id size
1 parent b51fd24 commit 4f685d8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

logic/scan.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ corsairlink_check_device_id( struct corsair_device_info* cl_device )
7777
int rr;
7878

7979
/* get device_id if we have a proper device handle */
80-
uint8_t device_id = 0x00;
80+
uint16_t device_id = 0x00;
8181
cl_device->driver->device_id( cl_device, scanlist[scanlist_count].handle, &device_id );
8282

8383
/* check to see if the device_id is the right one */
@@ -225,8 +225,6 @@ corsairlink_device_scanner( libusb_context* context, int* _scanlist_count )
225225
int ii; // Loops through USB devices.
226226
ssize_t cnt;
227227
libusb_device** devices;
228-
// uint16_t device_id = 0x00;
229-
// uint16_t firmware_id = 0x0000;
230228

231229
cnt = libusb_get_device_list( context, &devices );
232230
for ( ii = 0; ii < cnt; ii++ )

0 commit comments

Comments
 (0)