Skip to content

Commit f20eeaa

Browse files
authored
Merge d5d62a4 into 4b3735b
2 parents 4b3735b + d5d62a4 commit f20eeaa

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

source/bdDetect.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def _bgScanBluetooth(
359359
"""
360360
if not bluetooth:
361361
return
362-
btDevs: Optional[Iterable[Tuple[str, DeviceMatch]]] = _DeviceInfoFetcher.btDevsCache
362+
btDevs: Optional[Iterable[Tuple[str, DeviceMatch]]] = deviceInfoFetcher.btDevsCache
363363
if btDevs is None:
364364
btDevs = getDriversForPossibleBluetoothDevices()
365365
# Cache Bluetooth devices for next time.
@@ -373,7 +373,7 @@ def _bgScanBluetooth(
373373
btDevsCache.append((driver, match))
374374
yield (driver, match)
375375
if btDevsCache is not btDevs:
376-
_DeviceInfoFetcher.btDevsCache = btDevsCache
376+
deviceInfoFetcher.btDevsCache = btDevsCache
377377

378378
def _bgScan(
379379
self,
@@ -420,7 +420,7 @@ def rescan(
420420
"""
421421
self._stopBgScan()
422422
# Clear the cache of bluetooth devices so new devices can be picked up.
423-
_DeviceInfoFetcher.btDevsCache = None
423+
deviceInfoFetcher.btDevsCache = None
424424
self._queueBgScan(usb=usb, bluetooth=bluetooth, limitToDevices=limitToDevices)
425425

426426
def handleWindowMessage(self, msg=None, wParam=None):
@@ -433,7 +433,7 @@ def pollBluetoothDevices(self):
433433
if not self._detectBluetooth:
434434
# Do not poll bluetooth devices at all when bluetooth is disabled.
435435
return
436-
if not _DeviceInfoFetcher.btDevsCache:
436+
if not deviceInfoFetcher.btDevsCache:
437437
return
438438
self._queueBgScan(bluetooth=self._detectBluetooth, limitToDevices=self._limitToDevices)
439439

@@ -442,7 +442,7 @@ def terminate(self):
442442
messageWindow.pre_handleWindowMessage.unregister(self.handleWindowMessage)
443443
self._stopBgScan()
444444
# Clear the cache of bluetooth devices so new devices can be picked up with a new instance.
445-
_DeviceInfoFetcher.btDevsCache = None
445+
deviceInfoFetcher.btDevsCache = None
446446
self._executor.shutdown(wait=False)
447447

448448

0 commit comments

Comments
 (0)