1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-27 13:35:44 +00:00

button refactor ble

This commit is contained in:
tychovrahe 2025-03-12 02:24:56 +01:00
parent 5a5db1be95
commit 149526e78e

View File

@ -128,8 +128,8 @@ workflow_result_t workflow_host_control(const vendor_header *const vhdr,
} }
#ifdef USE_BUTTON #ifdef USE_BUTTON
if (i == IFACE_BUTTON) { if (i == IFACE_BUTTON) {
switch (e.event.button_event.type) { switch (e.event.button_event.event_type) {
case (BTN_EVT_DOWN >> 24): case (BTN_EVENT_DOWN >> 24):
ble_iface_start_pairing(); ble_iface_start_pairing();
default: default:
continue; continue;