From dff8320a5d04d74d8a08a81d9e6f6ed296d672ce Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Mon, 20 Sep 2021 01:05:39 +0100 Subject: usb: add request data argument to all control request handlers Change-Id: I237143fa0d95c914b8e25ed22f8acde96ec00551 --- firmware/usbstack/usb_serial.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/usbstack/usb_serial.c') diff --git a/firmware/usbstack/usb_serial.c b/firmware/usbstack/usb_serial.c index c96936f1d4..fad62787ec 100644 --- a/firmware/usbstack/usb_serial.c +++ b/firmware/usbstack/usb_serial.c @@ -277,11 +277,13 @@ int usb_serial_get_config_descriptor(unsigned char *dest, int max_packet_size) } /* called by usb_core_control_request() */ -bool usb_serial_control_request(struct usb_ctrlrequest* req, unsigned char* dest) +bool usb_serial_control_request(struct usb_ctrlrequest* req, void* reqdata, unsigned char* dest) { bool handled = false; (void)dest; + (void)reqdata; + if (req->wIndex != control_interface) { return false; -- cgit v1.2.3