Add missing svn:eol-style properties to the new KeyboardMouseMultiReport demo.
[pub/USBasp.git] / Projects / MissileLauncher / MissileLauncher.c
index 135fa2c..b085ed5 100644 (file)
@@ -204,7 +204,7 @@ void EVENT_USB_Host_DeviceEnumerationComplete(void)
 /** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
 void EVENT_USB_Host_HostError(const uint8_t ErrorCode)
 {
 /** Event handler for the USB_HostError event. This indicates that a hardware error occurred while in host mode. */
 void EVENT_USB_Host_HostError(const uint8_t ErrorCode)
 {
-       USB_ShutDown();
+       USB_Disable();
 
        LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
        for(;;);
 
        LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
        for(;;);
@@ -269,7 +269,7 @@ void WriteNextReport(uint8_t* const ReportOUTData,
                }
 
                /* Write out HID report data */
                }
 
                /* Write out HID report data */
-               Pipe_Write_Stream_LE(ReportOUTData, ReportLength);
+               Pipe_Write_Stream_LE(ReportOUTData, ReportLength, NULL);
 
                /* Clear the OUT endpoint, send last data packet */
                Pipe_ClearOUT();
 
                /* Clear the OUT endpoint, send last data packet */
                Pipe_ClearOUT();