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
This commit is contained in:
Jacob Alexander 2014-06-28 14:12:56 -07:00
parent dd8b04dce2
commit 0365d517fe
4 changed files with 22 additions and 13 deletions

View file

@ -203,12 +203,8 @@ inline int Output_putstr( char* str )
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 );