fix(bluetooth): Delete any previously stored name.

This commit is contained in:
Pete Johanson 2020-09-03 14:55:15 -04:00
parent 13842a8a1e
commit b103eb4b05

View file

@ -347,6 +347,8 @@ static int zmk_ble_init(struct device *_arg)
#endif #endif
#if IS_ENABLED(CONFIG_ZMK_BLE_CLEAR_BONDS_ON_START) #if IS_ENABLED(CONFIG_ZMK_BLE_CLEAR_BONDS_ON_START)
settings_delete("bt/name");
for (int i = 0; i < 10; i++) { for (int i = 0; i < 10; i++) {
bt_unpair(i, NULL); bt_unpair(i, NULL);
} }