fixup! address review comments

This commit is contained in:
Chris Andreae 2023-11-11 14:37:50 +09:00
parent 8f28775347
commit 14767c07b8
No known key found for this signature in database
GPG key ID: 3AA9D181B3ABD33F

View file

@ -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);