Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b954fb7 in mainline


Ignore:
Timestamp:
2012-03-12T21:54:34Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
08a2007
Parents:
d447598e
Message:

amdm37x_uart: Push only non-null data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/drivers/amdm37x_uart/amdm37x_uart.c

    rd447598e rb954fb7  
    7575//      while (!(uart->regs->isr2 & AMDM37x_UART_ISR2_RX_FIFO_EMPTY_FLAG)) {
    7676                const uint8_t val = uart->regs->rhr;
    77                 if (uart->indev)
     77                if (uart->indev && val) {
    7878                        indev_push_character(uart->indev, val);
     79                }
    7980//      }
    8081}
Note: See TracChangeset for help on using the changeset viewer.