native/hal_uart.c; break out of tx loop in poller if nothing to transmit.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/832fa2d5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/832fa2d5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/832fa2d5 Branch: refs/heads/develop Commit: 832fa2d5f0fa4c03879caa1d8a886e76729920d0 Parents: b1465b5 Author: Marko Kiiskila <ma...@runtime.io> Authored: Mon Apr 3 19:49:33 2017 -0700 Committer: Marko Kiiskila <ma...@runtime.io> Committed: Mon Apr 3 19:49:33 2017 -0700 ---------------------------------------------------------------------- hw/mcu/native/src/hal_uart.c | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/832fa2d5/hw/mcu/native/src/hal_uart.c ---------------------------------------------------------------------- diff --git a/hw/mcu/native/src/hal_uart.c b/hw/mcu/native/src/hal_uart.c index 4ef6186..b218f24 100644 --- a/hw/mcu/native/src/hal_uart.c +++ b/hw/mcu/native/src/hal_uart.c @@ -189,6 +189,8 @@ uart_poller(void *arg) for (bytes = 0; bytes < UART_MAX_BYTES_PER_POLL; bytes++) { if (uart->u_tx_run) { uart_transmit_char(uart); + } else { + break; } } for (bytes = 0; bytes < UART_MAX_BYTES_PER_POLL; bytes++) {