Bug 3674 fix
authorLukasz Forynski <lukasz.forynski@gmail.com>
Tue, 07 Sep 2010 08:40:04 +0100
changeset 63 8cf16be5c3dd
parent 62 e03ae8ba36fb
child 64 52c8fa16282d
Bug 3674 fix
omap3530/shared/monitor/monitor.cpp
--- a/omap3530/shared/monitor/monitor.cpp	Sun Sep 05 15:53:01 2010 +0100
+++ b/omap3530/shared/monitor/monitor.cpp	Tue Sep 07 08:40:04 2010 +0100
@@ -28,6 +28,9 @@
 		{
 		Omap3530Uart::TUart uart( portNumber );
 
+		// wait for uart to fihish any transmission that could be started (i.e. crash info)
+		while(!uart.TxFifoEmpty());
+
 		// Ensure UART clocks are running
 		Prcm::SetClockState( uart.PrcmInterfaceClk(),Prcm::EClkOn );
 		Prcm::SetClockState( uart.PrcmFunctionClk(), Prcm::EClkOn );
@@ -50,7 +53,7 @@
 		Omap3530Uart::TUart uart( portNumber );
 
 		TUint c=0;
-
+			
 		while ( !uart.RxFifoEmpty() )
 			{ 
 			if ( CheckPower() )