usb: Fix the length field of ICE1USB_INTF_SET_GPSDO_TUNE request

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: Ibf1b1440696902757f4b1c1d9c4d80c1da453a36
This commit is contained in:
Sylvain Munaut 2022-10-05 22:31:13 +02:00
parent 3b3ec3ae3e
commit f3e77ceed9
1 changed files with 1 additions and 1 deletions

View File

@ -645,7 +645,7 @@ e1_usb_ctrl_set_gpsdo_tune(struct e1_intf *intf, const struct e1usb_gpsdo_tune *
const uint16_t bmReqType = LIBUSB_RECIPIENT_INTERFACE | LIBUSB_REQUEST_TYPE_VENDOR |
LIBUSB_ENDPOINT_OUT;
return _e1_usb_intf_send_ctrl(intf, bmReqType, ICE1USB_INTF_SET_GPSDO_TUNE, 0,
(uint8_t *)gpsdo_tune, sizeof(gpsdo_tune));
(uint8_t *)gpsdo_tune, sizeof(*gpsdo_tune));
}
int