# HG changeset patch # User Jacob Alexander # Date 1411947820 25200 # Node ID d81ad399c14fc1a4a0904376768fe97b3fd77d0a # Parent b78806c7f9f41e27bb0e459cf318cc4333aebd4a Adding clear screen before usb initializes - Easier to debug USB initialization diff -r b78806c7f9f4 -r d81ad399c14f Output/usbMuxUart/output_com.c --- a/Output/usbMuxUart/output_com.c Sun Sep 28 16:42:43 2014 -0700 +++ b/Output/usbMuxUart/output_com.c Sun Sep 28 16:43:40 2014 -0700 @@ -118,7 +118,7 @@ // 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 @@ // 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