mirror of
https://github.com/shakemid/pcsensor-temper.git
synced 2025-01-21 09:08:17 +01:00
Add debug message
This commit is contained in:
parent
0ca8fdb1a3
commit
e7170399df
1 changed files with 5 additions and 3 deletions
|
@ -120,12 +120,14 @@ int find_lvr_winusb(libusb_device_handle **handles) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(debug) {
|
if(debug) {
|
||||||
unsigned char descmanu[256], descprod[256], descseri[256];
|
unsigned char bus, port, descmanu[256], descprod[256], descseri[256];
|
||||||
|
bus = libusb_get_bus_number(devs[i]);
|
||||||
|
port = libusb_get_port_number(devs[i]);
|
||||||
libusb_get_string_descriptor_ascii(handles[numdev], desc.iManufacturer, descmanu, 256);
|
libusb_get_string_descriptor_ascii(handles[numdev], desc.iManufacturer, descmanu, 256);
|
||||||
libusb_get_string_descriptor_ascii(handles[numdev], desc.iProduct, descprod, 256);
|
libusb_get_string_descriptor_ascii(handles[numdev], desc.iProduct, descprod, 256);
|
||||||
libusb_get_string_descriptor_ascii(handles[numdev], desc.iSerialNumber, descseri, 256);
|
libusb_get_string_descriptor_ascii(handles[numdev], desc.iSerialNumber, descseri, 256);
|
||||||
printf("lvr_winusb with VendorID:%04x ProductID:%04x Manufacturer:%s Product:%s Serial:%s found.\n",
|
printf("lvr_winusb with Bus:%03d Port:%03d VendorID:%04x ProductID:%04x Manufacturer:%s Product:%s Serial:%s found.\n",
|
||||||
desc.idVendor, desc.idProduct, descmanu, descprod, descseri);
|
bus, port, desc.idVendor, desc.idProduct, descmanu, descprod, descseri);
|
||||||
}
|
}
|
||||||
|
|
||||||
numdev++;
|
numdev++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue