revert extra event on disconnect
This commit is contained in:
parent
0fa37422a7
commit
c976fad8cd
1 changed files with 0 additions and 4 deletions
|
@ -326,10 +326,6 @@ int zmk_ble_prof_disconnect(uint8_t index) {
|
||||||
result = bt_conn_disconnect(conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);
|
result = bt_conn_disconnect(conn, BT_HCI_ERR_REMOTE_USER_TERM_CONN);
|
||||||
LOG_DBG("Disconnected from profile %d: %d", index, result);
|
LOG_DBG("Disconnected from profile %d: %d", index, result);
|
||||||
|
|
||||||
raise_profile_changed_event();
|
|
||||||
// `raise_profile_changed_event` actually does `raise_zmk_ble_active_profile_changed`
|
|
||||||
// should `profile_changed` and `active_profile_changed` be two separate events?
|
|
||||||
|
|
||||||
bt_conn_unref(conn);
|
bt_conn_unref(conn);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue