usb: Fix ICE1USB_INTF_SET_GPSDO_MODE request parameter

This call takes its argument in wValue rather than as payload

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

View File

@ -635,8 +635,8 @@ e1_usb_ctrl_set_gpsdo_mode(struct e1_intf *intf, enum ice1usb_gpsdo_mode gpsdo_m
{
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_MODE, 0,
(uint8_t *)&gpsdo_mode, sizeof(gpsdo_mode));
return _e1_usb_intf_send_ctrl(intf, bmReqType, ICE1USB_INTF_SET_GPSDO_MODE, gpsdo_mode,
NULL, 0);
}
int