fixed dmesg output "usbfs: process XXXXX (ledcontroller) did not claim interface 0 before use"
This commit is contained in:
1
main.c
1
main.c
@ -137,6 +137,7 @@ int main(int argc,char** argv)
|
|||||||
data[4] = 0x4;
|
data[4] = 0x4;
|
||||||
|
|
||||||
int dummy;
|
int dummy;
|
||||||
|
libusb_claim_interface(devh,0);
|
||||||
ret = libusb_interrupt_transfer(devh,0x2,data,5,&dummy,0);
|
ret = libusb_interrupt_transfer(devh,0x2,data,5,&dummy,0);
|
||||||
if ( ret < 0 )
|
if ( ret < 0 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user