Skip to content

Commit

Permalink
Fix linting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
hkpeprah committed Sep 9, 2024
1 parent aa65841 commit 88e3a2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bumble/drivers/rtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,9 @@ def check(host):
async def driver_info_for_host(cls, host):
try:
await host.send_command(
HCI_Reset_Command(), check_result=True, response_timeout=cls.POST_RESET_DELAY
HCI_Reset_Command(),
check_result=True,
response_timeout=cls.POST_RESET_DELAY,
)
host.ready = True # Needed to let the host know the controller is ready.
except asyncio.exceptions.TimeoutError:
Expand Down
4 changes: 3 additions & 1 deletion bumble/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,9 @@ def send_hci_packet(self, packet: hci.HCI_Packet) -> None:
if self.hci_sink:
self.hci_sink.on_packet(bytes(packet))

async def send_command(self, command, check_result=False, response_timeout: Optional[int] = None):
async def send_command(
self, command, check_result=False, response_timeout: Optional[int] = None
):
# Wait until we can send (only one pending command at a time)
async with self.command_semaphore:
assert self.pending_command is None
Expand Down

0 comments on commit 88e3a2b

Please sign in to comment.