From 4c0096fa80424f1b1d46931011166a6e59e2700a Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Tue, 6 Jun 2023 14:19:27 +0530 Subject: [PATCH] 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 7f1c5f151..f794937e2 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