1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-05-21 16:28:46 +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 c5a4eddfc9
commit 93f23e6318

View File

@ -50,10 +50,17 @@ import storage.device
usb.bus.open(storage.device.get_device_id()) usb.bus.open(storage.device.get_device_id())
# enable BLE, allow connections
if utils.USE_BLE: if utils.USE_BLE:
from trezorio import ble from trezorio import ble
ble.start_comm() 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 # run the endless loop
while True: while True: