Compare commits
1 commit
master
...
benzea/fix
Author | SHA1 | Date | |
---|---|---|---|
|
e1fdc7b01b |
1 changed files with 2 additions and 2 deletions
|
@ -175,7 +175,7 @@ write_regs (FpImageDevice *dev, uint16_t first_reg,
|
||||||
transfer->short_is_error = TRUE;
|
transfer->short_is_error = TRUE;
|
||||||
fpi_usb_transfer_fill_control (transfer,
|
fpi_usb_transfer_fill_control (transfer,
|
||||||
G_USB_DEVICE_DIRECTION_HOST_TO_DEVICE,
|
G_USB_DEVICE_DIRECTION_HOST_TO_DEVICE,
|
||||||
G_USB_DEVICE_REQUEST_TYPE_STANDARD,
|
G_USB_DEVICE_REQUEST_TYPE_VENDOR,
|
||||||
G_USB_DEVICE_RECIPIENT_DEVICE,
|
G_USB_DEVICE_RECIPIENT_DEVICE,
|
||||||
USB_RQ, first_reg, 0,
|
USB_RQ, first_reg, 0,
|
||||||
num_regs);
|
num_regs);
|
||||||
|
@ -202,7 +202,7 @@ read_regs (FpImageDevice *dev, uint16_t first_reg,
|
||||||
|
|
||||||
fpi_usb_transfer_fill_control (transfer,
|
fpi_usb_transfer_fill_control (transfer,
|
||||||
G_USB_DEVICE_DIRECTION_DEVICE_TO_HOST,
|
G_USB_DEVICE_DIRECTION_DEVICE_TO_HOST,
|
||||||
G_USB_DEVICE_REQUEST_TYPE_STANDARD,
|
G_USB_DEVICE_REQUEST_TYPE_VENDOR,
|
||||||
G_USB_DEVICE_RECIPIENT_DEVICE,
|
G_USB_DEVICE_RECIPIENT_DEVICE,
|
||||||
USB_RQ, first_reg, 0, num_regs);
|
USB_RQ, first_reg, 0, num_regs);
|
||||||
fpi_usb_transfer_submit (transfer, CTRL_TIMEOUT, NULL, callback, user_data);
|
fpi_usb_transfer_submit (transfer, CTRL_TIMEOUT, NULL, callback, user_data);
|
||||||
|
|
Loading…
Reference in a new issue