[ble] Add support to clear all current bondings

This commit is contained in:
Dimitris Zervas
2020-09-15 01:52:33 +03:00
committed by Kyle Brown
parent e5700eeb5f
commit 2cf64d8ce7
4 changed files with 12 additions and 1 deletions

View File

@@ -254,3 +254,8 @@ def led_mode_breathe(key, state, *args, **kwargs):
state.config.led.effect_init = True
state.config.led.animation_mode = 'breathing'
return state
def bt_clear_bonds(key, state, *args, **kwargs):
state.config._hid_helper_inst.clear_bonds()
return state