diff Output/uartOut/arm/uart_serial.c @ 340:e8841d3c6db5

mk20dx256vlh7 working! - Interrupt vector table position fix (affected everything in the firmware) - Added fault debug messages - Fixed usbMuxUart
author Jacob Alexander <haata@kiibohd.com>
date Sat, 13 Jun 2015 20:42:12 -0700
parents 9ac304aa1ab5
children 39e338a6733d
line wrap: on
line diff
--- a/Output/uartOut/arm/uart_serial.c	Tue Jun 09 10:02:05 2015 -0700
+++ b/Output/uartOut/arm/uart_serial.c	Sat Jun 13 20:42:12 2015 -0700
@@ -113,8 +113,7 @@
 			// Cleanup
 			available = UART_D;
 			UART_CFIFO = UART_CFIFO_RXFLUSH;
-			sei();
-			return;
+			goto done;
 		}
 
 		// Read UART0 into buffer until FIFO is empty
@@ -143,6 +142,7 @@
 		}
 	}
 
+done:
 	sei(); // Re-enable Interrupts
 }