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 4c0096fa apps/blecent: Fix incorrect return value handling in 
blecent_should_connect.
4c0096fa is described below

commit 4c0096fa80424f1b1d46931011166a6e59e2700a
Author: Rahul Tank <rahul.t...@espressif.com>
AuthorDate: Tue Jun 6 14:19:27 2023 +0530

    apps/blecent: Fix incorrect return value handling in
    blecent_should_connect.
---
 apps/blecent/src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/blecent/src/main.c b/apps/blecent/src/main.c
index 7f1c5f15..f794937e 100644
--- a/apps/blecent/src/main.c
+++ b/apps/blecent/src/main.c
@@ -272,7 +272,7 @@ blecent_should_connect(const struct ble_gap_disc_desc *disc)
 
     rc = ble_hs_adv_parse_fields(&fields, disc->data, disc->length_data);
     if (rc != 0) {
-        return rc;
+        return 0;
     }
 
     /* The device has to advertise support for the Alert Notification

Reply via email to