int ma8280p_switch (struct usb_dev_handle *devh, struct usb_device *dev)
{
int ret = 1;
- char *buf = NULL;
+ char *buf = NULL;
buf = malloc (65535);
if (!buf) {
return -1;
}
- ret = usb_get_descriptor(devh, 0x0000001, 0x0000000, buf, 0x0000012);
+ usb_get_descriptor(devh, 0x0000001, 0x0000000, buf, 0x0000012);
msleep(6);
- ret = usb_get_descriptor(devh, 0x0000001, 0x0000000, buf, 0x0000012);
+ usb_get_descriptor(devh, 0x0000001, 0x0000000, buf, 0x0000012);
msleep(6);
- ret = usb_get_descriptor(devh, 0x0000002, 0x0000000, buf, 0x0000400);
+ usb_get_descriptor(devh, 0x0000002, 0x0000000, buf, 0x0000400);
msleep(10);
ret = usb_release_interface(devh, 0);
if (ret != 0)
debug ("%s: failed to release interface before set_configuration: %d", dev->filename, ret);
- ret = usb_set_configuration(devh, 0x0000001);
+ usb_set_configuration(devh, 0x0000001);
ret = usb_claim_interface(devh, 0);
if (ret != 0)
debug ("%s: claim after set_configuration failed with error %d", dev->filename, ret);
- //ret = usb_set_altinterface(devh, 0);
+ //usb_set_altinterface(devh, 0);
//msleep(33);
- ret = usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE + USB_ENDPOINT_IN, 0x0000001, 0x0000300, 0x0000000, buf, 0x0000008, 1000);
+ usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE + USB_ENDPOINT_IN, 0x0000001, 0x0000300, 0x0000000, buf, 0x0000008, 1000);
msleep(5);
memcpy(buf, "\xb0\x04\x00\x00\x02\x90\x26\x86", 0x0000008);
- ret = usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE, 0x0000009, 0x0000300, 0x0000000, buf, 0x0000008, 1000);
+ usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE, 0x0000009, 0x0000300, 0x0000000, buf, 0x0000008, 1000);
msleep(4);
memcpy(buf, "\xb0\x04\x00\x00\x02\x90\x26\x86", 0x0000008);
- ret = usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE, 0x0000009, 0x0000300, 0x0000000, buf, 0x0000008, 1000);
+ usb_control_msg(devh, USB_TYPE_CLASS + USB_RECIP_INTERFACE, 0x0000009, 0x0000300, 0x0000000, buf, 0x0000008, 1000);
msleep(4);
msleep(4);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(6);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(1);
//URB_FUNCTION_GET_STATUS_FROM_ENDPOINT skipped
msleep(4);
memcpy(buf, "\x37\x01\xfe\xdb\xc1\x33\x1f\x83", 0x0000008);
- ret = usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
+ usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
msleep(3);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(1);
memcpy(buf, "\x37\x0e\xb5\x9d\x3b\x8a\x91\x51", 0x0000008);
- ret = usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
+ usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
msleep(7);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(1);
memcpy(buf, "\x34\x87\xba\x0d\xfc\x8a\x91\x51", 0x0000008);
- ret = usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
+ usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
msleep(7);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(2);
//URB_FUNCTION_GET_STATUS_FROM_ENDPOINT skipped
msleep(4);
memcpy(buf, "\x37\x01\xfe\xdb\xc1\x33\x1f\x83", 0x0000008);
- ret = usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
+ usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
msleep(2);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(1);
memcpy(buf, "\x37\x0e\xb5\x9d\x3b\x8a\x91\x51", 0x0000008);
- ret = usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
+ usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
msleep(7);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(1);
memcpy(buf, "\x34\x87\xba\x0d\xfc\x8a\x91\x51", 0x0000008);
- ret = usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
+ usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
msleep(7);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(8);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(1);
//URB_FUNCTION_GET_STATUS_FROM_ENDPOINT skipped
msleep(4);
memcpy(buf, "\x33\x04\xfe\x00\xf4\x6c\x1f\xf0", 0x0000008);
- ret = usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
+ usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
msleep(3);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
msleep(1);
//URB_FUNCTION_GET_STATUS_FROM_ENDPOINT skipped
msleep(4);
memcpy(buf, "\x32\x07\xfe\xf0\x29\xb9\x3a\xf0", 0x0000008);
- ret = usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
+ usb_interrupt_write(devh, 0x00000002, buf, 0x0000008, 1000);
msleep(3);
- ret = usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
+ usb_interrupt_read(devh, 0x00000081, buf, 0x0000008, 1000);
if (buf)
free (buf);