Fixed bug in RNDISEthernet and DualCDC demos not using the correct USB_ControlRequest...
[pub/USBasp.git] / Demos / OTG / TestApp / TestEvents.c
index 8f05b82..884e5b6 100644 (file)
@@ -31,7 +31,7 @@
 /** \file\r
  *\r
  *  This file contains dummy handlers for all the possible USB events passed to the\r
- *  application by the library (see Events.h documentation for more details on USB events).\r
+ *  application by the library (see \ref Group_Events documentation for more details on USB events).\r
  *\r
  *  Each event is caught and printed to the USART so that they may be monitored.\r
  */\r
@@ -139,7 +139,7 @@ EVENT_HANDLER(USB_UIDChange)
  *  Event handler for the USB_PowerOnFail event. When fired, the event is logged to the USART and the program\r
  *  execution aborted.\r
  */\r
-EVENT_HANDLER(USB_PowerOnFail)\r
+EVENT_HANDLER(USB_InitFailure)\r
 {\r
        char* ModeStrPtr;\r
        \r
@@ -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