USB_HostRequest renamed to USB_ControlRequest, entire control request header is now...
[pub/USBasp.git] / Demos / OTG / TestApp / TestEvents.c
index 8f05b82..1751477 100644 (file)
@@ -193,8 +193,9 @@ EVENT_HANDLER(USB_DeviceError)
 EVENT_HANDLER(USB_UnhandledControlPacket)\r
 {\r
        puts_P(PSTR(EVENT_PREFIX "Ctrl Request\r\n"));\r
-       printf_P(PSTR(" -- Req Data %d\r\n"), bRequest);\r
-       printf_P(PSTR(" -- Req Type %d\r\n"), bmRequestType);\r
+       printf_P(PSTR(" -- Req Data %d\r\n"), USB_ControlRequest.bRequest);\r
+       printf_P(PSTR(" -- Req Type %d\r\n"), USB_ControlRequest.bmRequestType);\r
+       printf_P(PSTR(" -- Req Length %d\r\n"), USB_ControlRequest.wLength);\r
 }\r
 \r
 /** Event handler for the USB_ConfigurationChanged event. When fired, the event is logged to the USART. */\r