mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 10:03:50 +01:00
sys/usb/usbus_hid: fix compilation with clang
Well, it is actually a cosmetic issue. But I agree with clang that it is ugly enough to refuse compiling over it :D
This commit is contained in:
parent
a4e4c1f2a7
commit
dd7bec50b5
@ -188,7 +188,7 @@ static int _control_handler(usbus_t *usbus, usbus_handler_t *handler,
|
|||||||
case USB_HID_REQUEST_GET_PROTOCOL:
|
case USB_HID_REQUEST_GET_PROTOCOL:
|
||||||
break;
|
break;
|
||||||
case USB_HID_REQUEST_SET_REPORT:
|
case USB_HID_REQUEST_SET_REPORT:
|
||||||
if ((state == USBUS_CONTROL_REQUEST_STATE_OUTDATA)) {
|
if (state == USBUS_CONTROL_REQUEST_STATE_OUTDATA) {
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
uint8_t *data = usbus_control_get_out_data(usbus, &size);
|
uint8_t *data = usbus_control_get_out_data(usbus, &size);
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user