Skip to content

Commit

Permalink
nimble/host: Fix return code in ble_gap_unpair_oldest_peer when no …
Browse files Browse the repository at this point in the history
…bonded peer exist
  • Loading branch information
prasad-alatkar committed Apr 3, 2020
1 parent 509040b commit 9cb4412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nimble/host/src/ble_gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9cb4412

Please sign in to comment.