Fixed MIDI_Host_Flush() not aborting early when the specified MIDI host interface...
[pub/USBasp.git] / Demos / Host / LowLevel / KeyboardHost / KeyboardHost.c
index debbf76..0c24bc9 100644 (file)
@@ -112,7 +112,8 @@ void EVENT_USB_Host_HostError(const uint8_t ErrorCode)
 /** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occurred while
  *  enumerating an attached USB device.
  */
 /** Event handler for the USB_DeviceEnumerationFailed event. This indicates that a problem occurred while
  *  enumerating an attached USB device.
  */
-void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode, const uint8_t SubErrorCode)
+void EVENT_USB_Host_DeviceEnumerationFailed(const uint8_t ErrorCode,
+                                            const uint8_t SubErrorCode)
 {
        printf_P(PSTR(ESC_FG_RED "Dev Enum Error\r\n"
                                 " -- Error Code %d\r\n"
 {
        printf_P(PSTR(ESC_FG_RED "Dev Enum Error\r\n"
                                 " -- Error Code %d\r\n"
@@ -130,7 +131,7 @@ void ReadNextReport(void)
        USB_KeyboardReport_Data_t KeyboardReport;
                
        /* Select keyboard data pipe */
        USB_KeyboardReport_Data_t KeyboardReport;
                
        /* Select keyboard data pipe */
-       Pipe_SelectPipe(KEYBOARD_DATAPIPE);     
+       Pipe_SelectPipe(KEYBOARD_DATA_IN_PIPE); 
 
        /* Unfreeze keyboard data pipe */
        Pipe_Unfreeze();
 
        /* Unfreeze keyboard data pipe */
        Pipe_Unfreeze();