mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-24 00:48:45 +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 {
|
typedef union {
|
||||||
uint8_t raw[32];
|
uint8_t raw[32];
|
||||||
ble_adv_start_cmd_data_t adv_start;
|
ble_adv_start_cmd_data_t adv_start;
|
||||||
|
uint8_t pairing_code[BLE_PAIRING_CODE_LEN];
|
||||||
} ble_command_data_t;
|
} ble_command_data_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -595,7 +595,7 @@ bool ble_issue_command(ble_command_t *command) {
|
|||||||
result = ble_send_erase_bonds(drv);
|
result = ble_send_erase_bonds(drv);
|
||||||
break;
|
break;
|
||||||
case BLE_ALLOW_PAIRING:
|
case BLE_ALLOW_PAIRING:
|
||||||
result = ble_send_pairing_accept(drv, command->data.raw);
|
result = ble_send_pairing_accept(drv, command->data.pairing_code);
|
||||||
break;
|
break;
|
||||||
case BLE_REJECT_PAIRING:
|
case BLE_REJECT_PAIRING:
|
||||||
result = ble_send_pairing_reject(drv);
|
result = ble_send_pairing_reject(drv);
|
||||||
|
Loading…
Reference in New Issue
Block a user