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