You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/07/14 01:49:57 UTC

[nuttx-apps] 01/04: examples/nimble: fix assertion during pthread create with zero priority

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

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

commit 355153cff5bf17fa6d6c94ff656ad1aaaf1cd196
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Thu Jul 13 23:20:28 2023 +0300

    examples/nimble: fix assertion during pthread create with zero priority
    
    Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
 examples/nimble/nimble_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/nimble/nimble_main.c b/examples/nimble/nimble_main.c
index 4bc3d013e..c3864077d 100644
--- a/examples/nimble/nimble_main.c
+++ b/examples/nimble/nimble_main.c
@@ -59,7 +59,7 @@
 
 /* Not used now */
 
-#define TASK_DEFAULT_PRIORITY       0
+#define TASK_DEFAULT_PRIORITY       CONFIG_EXAMPLES_NIMBLE_PRIORITY
 #define TASK_DEFAULT_STACK          NULL
 #define TASK_DEFAULT_STACK_SIZE     0
 
@@ -67,7 +67,7 @@
  * External Functions Prototypes
  ****************************************************************************/
 
-void ble_hci_sock_ack_handler(void *param);
+void ble_hci_sock_ack_handler(FAR void *param);
 void ble_hci_sock_init(void);
 void ble_hci_sock_set_device(int dev);