diff --git a/bumble/drivers/__init__.py b/bumble/drivers/__init__.py index 6a61ca84..2decab71 100644 --- a/bumble/drivers/__init__.py +++ b/bumble/drivers/__init__.py @@ -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 diff --git a/bumble/drivers/rtk.py b/bumble/drivers/rtk.py index bb6e5ea8..f79399ce 100644 --- a/bumble/drivers/rtk.py +++ b/bumble/drivers/rtk.py @@ -256,7 +256,7 @@ class Firmware: chip_id, firmware[patch_offset : patch_offset + patch_length - 4] + struct.pack("