mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-25 18:28:47 +00:00
fix(nordic): abort pairing when advertising is changed
[no changelog]
This commit is contained in:
parent
54202b9f53
commit
a9103763ec
@ -125,6 +125,11 @@ static void process_command(uint8_t *data, uint16_t len) {
|
||||
cmd_advertising_on_t *cmd = (cmd_advertising_on_t *)data;
|
||||
|
||||
int name_len = strnlen(cmd->name, BLE_ADV_NAME_LEN);
|
||||
|
||||
if (cmd->whitelist != 0) {
|
||||
pairing_num_comp_reply(false, NULL);
|
||||
}
|
||||
|
||||
advertising_start(cmd->whitelist != 0, cmd->color, cmd->device_code,
|
||||
cmd->static_addr, (char *)cmd->name, name_len);
|
||||
} break;
|
||||
|
Loading…
Reference in New Issue
Block a user