Skip to content

Commit

Permalink
fixup! feat(core): add support for setting BLE name from Trezor firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
TychoVrahe committed Jan 17, 2025
1 parent f6dc982 commit 2e5e720
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion core/embed/io/ble/inc/io/ble.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ typedef union {

typedef struct {
ble_command_type_t cmd_type;
int connection_id;
uint8_t data_len;
ble_command_data_t data;
} ble_command_t;
Expand Down
3 changes: 0 additions & 3 deletions core/embed/rust/src/trezorhal/ble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ pub fn pairing_mode(name: &str) {
unsafe {
let mut cmd = ffi::ble_command_t {
cmd_type: ffi::ble_command_type_t_BLE_PAIRING_MODE,
connection_id: 0,
data_len: 0,
data: ffi::ble_command_data_t { raw: [0; 32] },
};
Expand All @@ -39,7 +38,6 @@ pub fn allow_pairing() {
unsafe {
let mut cmd = ffi::ble_command_t {
cmd_type: ffi::ble_command_type_t_BLE_ALLOW_PAIRING,
connection_id: 0,
data_len: 0,
data: ffi::ble_command_data_t { raw: [0; 32] },
};
Expand All @@ -51,7 +49,6 @@ pub fn reject_pairing() {
unsafe {
let mut cmd = ffi::ble_command_t {
cmd_type: ffi::ble_command_type_t_BLE_REJECT_PAIRING,
connection_id: 0,
data_len: 0,
data: ffi::ble_command_data_t { raw: [0; 32] },
};
Expand Down

0 comments on commit 2e5e720

Please sign in to comment.