mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-20 17:19:01 +00:00
refactor(core/io): add pairing_code to ble_command_data_t
[no changelog]
This commit is contained in:
parent
a50e49afa9
commit
1c09490f3b
@ -50,6 +50,7 @@ typedef struct {
|
||||
typedef union {
|
||||
uint8_t raw[32];
|
||||
ble_adv_start_cmd_data_t adv_start;
|
||||
uint8_t pairing_code[BLE_PAIRING_CODE_LEN];
|
||||
} ble_command_data_t;
|
||||
|
||||
typedef struct {
|
||||
|
@ -595,7 +595,7 @@ bool ble_issue_command(ble_command_t *command) {
|
||||
result = ble_send_erase_bonds(drv);
|
||||
break;
|
||||
case BLE_ALLOW_PAIRING:
|
||||
result = ble_send_pairing_accept(drv, command->data.raw);
|
||||
result = ble_send_pairing_accept(drv, command->data.pairing_code);
|
||||
break;
|
||||
case BLE_REJECT_PAIRING:
|
||||
result = ble_send_pairing_reject(drv);
|
||||
|
Loading…
Reference in New Issue
Block a user