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:
parent
c053ef3012
commit
0d55e1a70b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user