Fixed le_scan_interval incorrectly being set with scan_window

This commit is contained in:
Peter Condoleon
2025-02-27 13:54:20 +10:00
parent 12bcdb7770
commit 592475e2ed

View File

@@ -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,