This is an automated email from the ASF dual-hosted git repository.

janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 96df59e  nimble/transport: Fix ble_ll_hw_error declaration in UART 
transport
96df59e is described below

commit 96df59e1deca6c5bf90b18fe7d7fd144353c0806
Author: Szymon Janc <[email protected]>
AuthorDate: Mon Dec 6 10:58:34 2021 +0100

    nimble/transport: Fix ble_ll_hw_error declaration in UART transport
    
    ble_ll_hw_error() is defined as taking no arguments.
---
 nimble/transport/uart/src/ble_hci_uart.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nimble/transport/uart/src/ble_hci_uart.c 
b/nimble/transport/uart/src/ble_hci_uart.c
index cbb6dd4..2cad55a 100644
--- a/nimble/transport/uart/src/ble_hci_uart.c
+++ b/nimble/transport/uart/src/ble_hci_uart.c
@@ -55,7 +55,7 @@
 /* XXX: for now, define this here */
 #if MYNEWT_VAL(BLE_CONTROLLER)
 extern void ble_ll_data_buffer_overflow(void);
-extern void ble_ll_hw_error(uint8_t err);
+extern void ble_ll_hw_error(void);
 
 static const uint8_t ble_hci_uart_reset_cmd[4] = { 0x01, 0x03, 0x0C, 0x00 };
 #endif
@@ -400,7 +400,7 @@ ble_hci_uart_sync_lost(void)
     ble_hci_uart_state.rx_cmd.cur = 0;
     ble_hci_uart_state.rx_cmd.data =
         ble_hci_trans_buf_alloc(BLE_HCI_TRANS_BUF_CMD);
-    ble_ll_hw_error(BLE_HW_ERR_HCI_SYNC_LOSS);
+    ble_ll_hw_error();
     ble_hci_uart_state.rx_type = BLE_HCI_UART_H4_SYNC_LOSS;
 }
 #endif

Reply via email to