1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-04-20 00:59:02 +00:00

feat(core): start BLE advertising on boot

[no changelog]
This commit is contained in:
Martin Milata 2025-04-08 16:21:10 +02:00
parent c053ef3012
commit 0d55e1a70b

View File

@ -50,10 +50,17 @@ import storage.device
usb.bus.open(storage.device.get_device_id())
# enable BLE, allow connections
if utils.USE_BLE:
from trezorio import ble
ble.start_comm()
# allow connections from bonded peers if any
if ble.peer_count() > 0:
ble.start_advertising(True, storage.device.get_label())
del ble
# run the endless loop
while True: