Repository: incubator-mynewt-core Updated Branches: refs/heads/develop c483e8222 -> 13f4b150f
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/13f4b150 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/13f4b150 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/13f4b150 Branch: refs/heads/develop Commit: 13f4b150fe8647a1d944c0d5e2694b3710ac0be6 Parents: c483e82 Author: Christopher Collins <[email protected]> Authored: Fri Aug 5 10:37:27 2016 -0700 Committer: Christopher Collins <[email protected]> Committed: Fri Aug 5 10:37:27 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/13f4b150/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);
