tnt has uploaded this change for review.

View Change

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
---
M src/usb.c
1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/34/29634/1
diff --git a/src/usb.c b/src/usb.c
index 0529535..a8a650c 100644
--- a/src/usb.c
+++ b/src/usb.c
@@ -635,8 +635,8 @@
{
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

To view, visit change 29634. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: Ibeebe3184a4744bd0cd9f5a19db84c12fab18806
Gerrit-Change-Number: 29634
Gerrit-PatchSet: 1
Gerrit-Owner: tnt <tnt@246tNt.com>
Gerrit-MessageType: newchange