From 0d55e1a70b6388be15e3c4c93cc707187ce12063 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Tue, 8 Apr 2025 16:21:10 +0200 Subject: [PATCH] feat(core): start BLE advertising on boot [no changelog] --- core/src/main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/main.py b/core/src/main.py index f6433b5fcf..8b03772723 100644 --- a/core/src/main.py +++ b/core/src/main.py @@ -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: