[drivers/serial]resolve compile error

Signed-off-by: WillianChan <chentingwei@rt-thread.com>
This commit is contained in:
WillianChan 2020-09-14 18:16:32 +08:00
parent c6b4c2ea2b
commit ee3d05f583
1 changed files with 1 additions and 0 deletions

View File

@ -328,6 +328,7 @@ rt_inline int _serial_int_tx(struct rt_serial_device *serial, const rt_uint8_t *
rt_completion_wait(&(tx->completion), RT_WAITING_FOREVER); rt_completion_wait(&(tx->completion), RT_WAITING_FOREVER);
continue; continue;
} }
}
if (serial->ops->putc(serial, *(char*)data) == -1) if (serial->ops->putc(serial, *(char*)data) == -1)
{ {