From 592475e2ed64fcff8d4d64b818a091e5b0c4fc1f Mon Sep 17 00:00:00 2001 From: Peter Condoleon Date: Thu, 27 Feb 2025 13:54:20 +1000 Subject: [PATCH] Fixed le_scan_interval incorrectly being set with scan_window --- bumble/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bumble/device.py b/bumble/device.py index 45b4105b..11cf2cce 100644 --- a/bumble/device.py +++ b/bumble/device.py @@ -3091,7 +3091,7 @@ class Device(CompositeEventEmitter): # pylint: disable=line-too-long hci.HCI_LE_Set_Scan_Parameters_Command( le_scan_type=scan_type, - le_scan_interval=int(scan_window / 0.625), + le_scan_interval=int(scan_interval / 0.625), le_scan_window=int(scan_window / 0.625), own_address_type=own_address_type, scanning_filter_policy=hci.HCI_LE_Set_Scan_Parameters_Command.BASIC_UNFILTERED_POLICY,