]> git.donarmstrong.com Git - kiibohd-controller.git/commitdiff
Adding clear screen before usb initializes
authorJacob Alexander <haata@kiibohd.com>
Sun, 28 Sep 2014 23:43:40 +0000 (16:43 -0700)
committerJacob Alexander <haata@kiibohd.com>
Sun, 28 Sep 2014 23:43:40 +0000 (16:43 -0700)
- Easier to debug USB initialization

Output/usbMuxUart/output_com.c

index d5fb10c7b28308e311115e1dc2f782abab5661e4..98baa96a6a2a7d6c29653bb7c892a9055bbb69a1 100644 (file)
@@ -118,7 +118,7 @@ USBKeyChangeState USBKeys_Changed = USBKeyChangeState_None;
 
 // the idle configuration, how often we send the report to the
 // host (ms * 4) even when it hasn't changed
-         uint8_t USBKeys_Idle_Config = 125;
+         uint8_t  USBKeys_Idle_Config = 125;
 
 // count until idle timeout
          uint8_t  USBKeys_Idle_Count = 0;
@@ -365,13 +365,14 @@ void Output_usbCodeSend_capability( uint8_t state, uint8_t stateType, uint8_t *a
 // USB Module Setup
 inline void Output_setup()
 {
+       // Setup UART
+       uart_serial_setup();
+       print("\033[2J"); // Clear screen
+
        // Initialize the USB, and then wait for the host to set configuration.
        // This will hang forever if USB does not initialize
        usb_init();
 
-       // Setup UART
-       uart_serial_setup();
-
        while ( !usb_configured() );
 
        // Register USB Output CLI dictionary