Skip to content

Commit

Permalink
Revert changes to bdDetect
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonarddeR committed Jan 24, 2025
1 parent 8c93880 commit ddbe30c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions source/bdDetect.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,9 @@ def addUsbDevice(
)
devs = self._getDriverDict()
driverUsb = devs[CommunicationType.USB]
driverUsb.add(_UsbDeviceRegistryEntry(type, id, useAsFallback, matchFunc))
driverUsb.add(
_UsbDeviceRegistryEntry(id=id, type=type, useAsFallback=useAsFallback, matchFunc=matchFunc),
)

def addUsbDevices(
self,
Expand Down Expand Up @@ -774,7 +776,12 @@ def addUsbDevices(
)
devs = self._getDriverDict()
driverUsb = devs[CommunicationType.USB]
driverUsb.update((_UsbDeviceRegistryEntry(id, type, useAsFallback, matchFunc) for id in ids))
driverUsb.update(
(
_UsbDeviceRegistryEntry(id=id, type=type, useAsFallback=useAsFallback, matchFunc=matchFunc)
for id in ids
)
)

def addBluetoothDevices(self, matchFunc: MatchFuncT):
"""Associate Bluetooth HID or COM ports with the driver on this instance.
Expand Down

0 comments on commit ddbe30c

Please sign in to comment.