BLE: Allow bonding with GapPairingNone

This commit is contained in:
Willy-JL
2024-04-17 01:21:41 +01:00
parent 16654d3c90
commit 3b490d5d1f
2 changed files with 2 additions and 3 deletions

View File

@@ -152,6 +152,7 @@ int32_t bad_kb_conn_apply(BadKbApp* app) {
BadKbConfig* cfg = app->set_bt_id ? &app->id_config : &app->config;
memcpy(&app->cur_ble_cfg, &cfg->ble, sizeof(cfg->ble));
app->cur_ble_cfg.bonding = app->bt_remember;
// TODO: Allow GapPairingNone with BT Remember ON
if(app->bt_remember) {
app->cur_ble_cfg.pairing = GapPairingPinCodeVerifyYesNo;
} else {