changeset 230:d81ad399c14f

Adding clear screen before usb initializes - Easier to debug USB initialization
author Jacob Alexander <haata@kiibohd.com>
date Sun, 28 Sep 2014 16:43:40 -0700
parents b78806c7f9f4
children 4afb170978e9
files Output/usbMuxUart/output_com.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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