mynewt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject [23/50] [abbrv] incubator-mynewt-core git commit: BLE UART HCI - Remove debug log.
Date Thu, 11 Aug 2016 21:27:23 GMT
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/dff04c85
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/dff04c85
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/dff04c85

Branch: refs/heads/phyrx_no_mbuf
Commit: dff04c856e50fe054dc9c8d47994ea8480260871
Parents: 90de67d
Author: Christopher Collins <ccollins@apache.org>
Authored: Fri Aug 5 10:37:27 2016 -0700
Committer: William San Filippo <wills@runtime.io>
Committed: Thu Aug 11 14:26:25 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/dff04c85/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);


Mime
View raw message