fixup! address review comments
This commit is contained in:
parent
8f28775347
commit
14767c07b8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue