Subversion Repositories NaviCtrl

Compare Revisions

Ignore whitespace Rev 663 → Rev 664

/trunk/uart0.c
376,12 → 376,12
tmp_tx = UART0_tx_buffer.pData[UART0_tx_buffer.Position++]; // read next byte from txd buffer
UART_SendData(UART0, tmp_tx); // put character to txd fifo
// if terminating character or end of txd buffer reached
if((tmp_tx == '\r') || (UART0_tx_buffer.Position == UART0_tx_buffer.Size))
// if((tmp_tx == '\r') || (UART0_tx_buffer.Position == UART0_tx_buffer.Size))
if((UART0_tx_buffer.Position == UART0_tx_buffer.DataBytes) || (UART0_tx_buffer.Position == UART0_tx_buffer.Size))
{
Buffer_Clear(&UART0_tx_buffer);
}
}
 
}