This is an automated email from the ASF dual-hosted git repository. rymek pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit 7260a4efdb72ab8e1db1767c4f1e502876d8c378 Author: Prasad Alatkar <prasad.alat...@espressif.com> AuthorDate: Fri Apr 3 18:42:05 2020 +0530 nimble/host: Fix return code in `ble_gap_unpair_oldest_peer` when no bonded peer exist --- nimble/host/src/ble_gap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index 4729dd0..b44012d 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -5594,7 +5594,7 @@ ble_gap_unpair_oldest_peer(void) } if (num_peers == 0) { - return 0; + return BLE_HS_ENOENT; } rc = ble_gap_unpair(&oldest_peer_id_addr);