Skip to content

Commit

Permalink
apps/blecent: Fix incorrect return value handling in
Browse files Browse the repository at this point in the history
blecent_should_connect.
  • Loading branch information
rahult-github authored and sjanc committed Jun 6, 2023
1 parent 7f17076 commit 4c0096f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/blecent/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c0096f

Please sign in to comment.