Merge pull request #99 from petejohanson/core/bluetooth-unpair-magic-combo

Add magic combo for unpairing BT devices on start.
This commit is contained in:
Pete Johanson 2020-08-18 19:21:43 -04:00 committed by GitHub
commit 0d3cfa8596
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 160 additions and 10 deletions

View file

@ -200,6 +200,12 @@ static int zmk_ble_init(struct device *_arg)
return 0;
}
int zmk_ble_unpair_all()
{
LOG_DBG("");
return bt_unpair(BT_ID_DEFAULT, NULL);
};
bool zmk_ble_handle_key_user(struct zmk_key_event *key_event)
{
zmk_key key = key_event->key;