mirror of https://github.com/ARMmbed/mbed-os.git
parent
ace842b1f1
commit
baa4003b95
|
@ -368,7 +368,7 @@ int serial_writable(serial_t *obj) {
|
||||||
if (NC != uart_data[obj->index].sw_cts.pin)
|
if (NC != uart_data[obj->index].sw_cts.pin)
|
||||||
isWritable = gpio_read(&uart_data[obj->index].sw_cts) == 0;
|
isWritable = gpio_read(&uart_data[obj->index].sw_cts) == 0;
|
||||||
if (isWritable)
|
if (isWritable)
|
||||||
isWritable = obj->uart->LSR & 0x20;
|
isWritable = obj->uart->LSR & 0x40;
|
||||||
return isWritable;
|
return isWritable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue