{
/* We are currently sending, send next char */
if ((intr & LPC_UART_INT_MASK) == LPC_UART_INT_TX) {
- if (uart->out_buff && uart->sending && (uart->out_length > uart->sending)) {
+ if (uart->sending && (uart->out_length > uart->sending)) {
uart->regs->func.buffer = uart->out_buff[uart->sending];
uart->sending++;
} else {
{
struct uart_device* uart = &uarts[uart_num];
- if (uart->out_buff == NULL)
- return;
-
if (!uart->sending && (uart->out_length != 0)) {
uart->sending++;
uart->regs->func.buffer = uart->out_buff[0];