From fbc3959a5a47d7137e76b1217d13d4b34c978335 Mon Sep 17 00:00:00 2001 From: Hui Peng Date: Fri, 6 Oct 2023 19:47:06 -0700 Subject: [PATCH] Allow turning on BLE in classic pairing mode --- apps/pair.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pair.py b/apps/pair.py index 2cc8188..39ee4fe 100644 --- a/apps/pair.py +++ b/apps/pair.py @@ -306,6 +306,7 @@ async def pair( # Expose a GATT characteristic that can be used to trigger pairing by # responding with an authentication error when read if mode == 'le': + device.le_enabled = True device.add_service( Service( '50DB505C-8AC4-4738-8448-3B1D9CC09CC5', @@ -326,7 +327,6 @@ async def pair( # Select LE or Classic if mode == 'classic': device.classic_enabled = True - device.le_enabled = False device.classic_smp_enabled = ctkd # Get things going