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

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 8ce2d376cc1d6c3657754ad5075f8babf1837f10
Author: Xiang Xiao <[email protected]>
AuthorDate: Sun Dec 27 17:31:31 2020 +0800

    bt_uart_shim: Don't hardcode the thread stack size
    
    so let's change 1024 to CONFIG_DEFAULT_TASKSIZE
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 drivers/wireless/bluetooth/bt_uart_shim.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/wireless/bluetooth/bt_uart_shim.c 
b/drivers/wireless/bluetooth/bt_uart_shim.c
index 2d6146f..40d7d57 100644
--- a/drivers/wireless/bluetooth/bt_uart_shim.c
+++ b/drivers/wireless/bluetooth/bt_uart_shim.c
@@ -480,7 +480,8 @@ FAR struct btuart_lowerhalf_s *bt_uart_shim_getdevice(FAR 
const char *path)
 
   s->serialmontask = kthread_create("BT HCI Rx",
                                     CONFIG_BLUETOOTH_TXCONN_PRIORITY,
-                                    1024, hcicollecttask, argv);
+                                    CONFIG_DEFAULT_TASK_STACKSIZE,
+                                    hcicollecttask, argv);
 
   return (FAR struct btuart_lowerhalf_s *)n;
 }

Reply via email to