mirror of
https://github.com/google/bumble.git
synced 2026-04-18 00:45:32 +00:00
allow custom driver factories
This commit is contained in:
@@ -61,7 +61,7 @@ async def get_driver_for_host(host):
|
||||
"""Probe all known diver classes until one returns a valid instance for a host,
|
||||
or none is found.
|
||||
"""
|
||||
if (driver := await rtk.Driver.for_host(host)):
|
||||
if driver := await rtk.Driver.for_host(host):
|
||||
logger.debug("Instantiated RTK driver")
|
||||
return driver
|
||||
|
||||
|
||||
@@ -256,7 +256,7 @@ class Firmware:
|
||||
chip_id,
|
||||
firmware[patch_offset : patch_offset + patch_length - 4]
|
||||
+ struct.pack("<I", self.version),
|
||||
svn_version
|
||||
svn_version,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user