BLE uart - fix host-only build error.
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/9d0b1d49 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/9d0b1d49 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/9d0b1d49 Branch: refs/heads/develop Commit: 9d0b1d4904183a375ca33c969fd785b548ff0a05 Parents: 46e25ed Author: Christopher Collins <[email protected]> Authored: Thu Dec 29 17:01:34 2016 -0800 Committer: Christopher Collins <[email protected]> Committed: Thu Dec 29 17:02:36 2016 -0800 ---------------------------------------------------------------------- net/nimble/transport/uart/src/ble_hci_uart.c | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/9d0b1d49/net/nimble/transport/uart/src/ble_hci_uart.c ---------------------------------------------------------------------- diff --git a/net/nimble/transport/uart/src/ble_hci_uart.c b/net/nimble/transport/uart/src/ble_hci_uart.c index 1ace2b0..402c5a1 100755 --- a/net/nimble/transport/uart/src/ble_hci_uart.c +++ b/net/nimble/transport/uart/src/ble_hci_uart.c @@ -563,7 +563,15 @@ ble_hci_uart_rx_acl(uint8_t data) */ if (pktlen > ble_hci_uart_max_acl_datalen) { os_mbuf_free_chain(ble_hci_uart_state.rx_acl.buf); +#if MYNEWT_VAL(BLE_DEVICE) ble_hci_uart_sync_lost(); +#else + /* + * XXX: not sure what to do about host in this case. Just go back to + * none for now. + */ + ble_hci_uart_state.rx_type = BLE_HCI_UART_H4_NONE; +#endif } }
