BLE UART HCI - Remove debug log. This was accidentally included in the initial commit!
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/8f4f2cbb Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/8f4f2cbb Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/8f4f2cbb Branch: refs/heads/sterly_refactor Commit: 8f4f2cbb98118da03e77f8f8518885c306a0a978 Parents: d3f60ae Author: Christopher Collins <[email protected]> Authored: Fri Aug 5 10:37:27 2016 -0700 Committer: Sterling Hughes <[email protected]> Committed: Tue Aug 9 16:05:21 2016 -0700 ---------------------------------------------------------------------- net/nimble/transport/uart/src/ble_hci_uart.c | 18 ------------------ 1 file changed, 18 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/8f4f2cbb/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 98a49b6..1285f56 100755 --- a/net/nimble/transport/uart/src/ble_hci_uart.c +++ b/net/nimble/transport/uart/src/ble_hci_uart.c @@ -73,12 +73,6 @@ static void *ble_hci_uart_evt_buf; static struct os_mempool ble_hci_uart_pkt_pool; static void *ble_hci_uart_pkt_buf; -#define BLE_HCI_UART_LOG_SZ 1024 -static uint8_t ble_hci_uart_tx_log[BLE_HCI_UART_LOG_SZ]; -static int ble_hci_uart_tx_log_sz; -static uint8_t ble_hci_uart_rx_log[BLE_HCI_UART_LOG_SZ]; -static int ble_hci_uart_rx_log_sz; - /** * An incoming or outgoing command or event. */ @@ -263,13 +257,6 @@ ble_hci_uart_tx_char(void *arg) break; } - if (rc != -1) { - ble_hci_uart_tx_log[ble_hci_uart_tx_log_sz++] = rc; - if (ble_hci_uart_tx_log_sz == sizeof ble_hci_uart_tx_log) { - ble_hci_uart_tx_log_sz = 0; - } - } - return rc; } @@ -410,11 +397,6 @@ ble_hci_uart_rx_acl(uint8_t data) static int ble_hci_uart_rx_char(void *arg, uint8_t data) { - ble_hci_uart_rx_log[ble_hci_uart_rx_log_sz++] = data; - if (ble_hci_uart_rx_log_sz == sizeof ble_hci_uart_rx_log) { - ble_hci_uart_rx_log_sz = 0; - } - switch (ble_hci_uart_state.rx_type) { case BLE_HCI_UART_H4_NONE: return ble_hci_uart_rx_pkt_type(data);
