diff Output/usbMuxUart/output_com.c @ 173:afd0f94023ff

Fixed bug with standalone UART CLI - Sending characters to the UART before it's ready would overflow the buffer causing it to hang - Added a check to make sure the interface is ready before starting to send characters - Removed the incorrect check for the usbMuxUart to make sure usb is ready before sending over the uart
author Jacob Alexander <haata@kiibohd.com>
date Sat, 28 Jun 2014 14:12:56 -0700
parents a30bddad4115
children c70f641581b5
line wrap: on
line diff
--- a/Output/usbMuxUart/output_com.c	Sat Jun 28 10:35:54 2014 -0700
+++ b/Output/usbMuxUart/output_com.c	Sat Jun 28 14:12:56 2014 -0700
@@ -203,12 +203,8 @@
 	while ( str[count] != '\0' )
 		count++;
 
-	// Make sure USB is configured first
-	if ( usb_configured() )
-	{
-		// First send to UART
-		uart_serial_write( str, count );
-	}
+	// First send to UART
+	uart_serial_write( str, count );
 
 	// Then send to USB
 	return usb_serial_write( str, count );