Repository: incubator-mynewt-larva Updated Branches: refs/heads/master b55d138c4 -> 56cf13f43
Fix error in port of hal uart from nrf52 to nrf51. Was not ever filling a byte in the transmit buffer Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/56cf13f4 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/56cf13f4 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/56cf13f4 Branch: refs/heads/master Commit: 56cf13f43a67c6f4372b243f47555928cc940f6e Parents: b55d138 Author: wes3 <w...@micosa.io> Authored: Mon Feb 1 15:27:47 2016 -0800 Committer: wes3 <w...@micosa.io> Committed: Mon Feb 1 15:27:47 2016 -0800 ---------------------------------------------------------------------- hw/mcu/nordic/nrf51xxx/src/hal_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/56cf13f4/hw/mcu/nordic/nrf51xxx/src/hal_uart.c ---------------------------------------------------------------------- diff --git a/hw/mcu/nordic/nrf51xxx/src/hal_uart.c b/hw/mcu/nordic/nrf51xxx/src/hal_uart.c index 66a230c..8e903dd 100644 --- a/hw/mcu/nordic/nrf51xxx/src/hal_uart.c +++ b/hw/mcu/nordic/nrf51xxx/src/hal_uart.c @@ -71,7 +71,7 @@ hal_uart_tx_fill_buf(struct hal_uart *u) i = 0; data = u->u_tx_func(u->u_func_arg); - if (data < 0) { + if (data >= 0) { u->u_tx_buf = data; i = 1; }