forked from Imagelibrary/rtems
termios: Update due to API changes
Termios notifies now the driver about an inactive transmit with the length argument set to zero.
This commit is contained in:
@@ -114,11 +114,10 @@ static int mmconsole_set_attributes(int minor, const struct termios *t)
|
||||
|
||||
static ssize_t mmconsole_write(int minor, const char *buf, size_t n)
|
||||
{
|
||||
rtems_interrupt_level level;
|
||||
if (n > 0) {
|
||||
MM_WRITE(MM_UART_RXTX, *buf);
|
||||
}
|
||||
|
||||
rtems_interrupt_disable(level);
|
||||
MM_WRITE(MM_UART_RXTX, *buf);
|
||||
rtems_interrupt_enable(level);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user