Skip to content

Commit

Permalink
fixup! address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisandreae committed Nov 11, 2023
1 parent 8f28775 commit 14767c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/ble.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ int zmk_ble_prof_disconnect(uint8_t index) {
int result;

if (!bt_addr_le_cmp(addr, BT_ADDR_LE_ANY)) {
return -1;
return -ENODEV;
} else if ((conn = bt_conn_lookup_addr_le(BT_ID_DEFAULT, addr)) == NULL) {
return -1;
return -ENODEV;
}

result = bt_conn_disconnect(conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);
Expand Down

0 comments on commit 14767c0

Please sign in to comment.