fix(bluetooth): Split improvements
* Proper usage of bt_uuid_cmp. * Central's don't start scanning for peripherals if `ZMK_BLE_CLEAR_BONDS_ON_START` is enabled. * Split peripherals don't advertize if `ZMK_BLE_CLEAR_BONDS_ON_START` is enabled.
This commit is contained in:
parent
54c2e8e155
commit
5f6a13413b
2 changed files with 10 additions and 9 deletions
|
|
@ -116,11 +116,11 @@ static int zmk_peripheral_ble_init(const struct device *_arg) {
|
|||
LOG_WRN("Clearing all existing BLE bond information from the keyboard");
|
||||
|
||||
bt_unpair(BT_ID_DEFAULT, NULL);
|
||||
#endif
|
||||
|
||||
#else
|
||||
bt_conn_cb_register(&conn_callbacks);
|
||||
|
||||
start_advertising();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue