Skip to content

Commit 27f132c

Browse files
Correct SET_INTERFACE_REQUEST
1 parent 456c0d5 commit 27f132c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cores/arduino/USB/USBCore.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -800,8 +800,8 @@ static void USB_ISR(void)
800800
}
801801
else if (SET_INTERFACE == r)
802802
{
803-
_usbSetInterface = setup.wValueL;
804-
TRACE_CORE(puts(">>> EP0 Int: SET_INTERFACE\r\n");)
803+
_usbSetInterface = setup.wIndex;
804+
TRACE_CORE(printf(">>> EP0 Int: SET_INTERFACE interface=%d alternateSetting=%d\r\n",_usbSetInterface, setup.wValueL);)
805805
}
806806
}
807807
else

0 commit comments

Comments
 (0)