mirror of
https://github.com/google/bumble.git
synced 2026-05-08 03:58:01 +00:00
Fix linting errors.
This commit is contained in:
@@ -499,7 +499,9 @@ class Driver(common.Driver):
|
|||||||
async def driver_info_for_host(cls, host):
|
async def driver_info_for_host(cls, host):
|
||||||
try:
|
try:
|
||||||
await host.send_command(
|
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.
|
host.ready = True # Needed to let the host know the controller is ready.
|
||||||
except asyncio.exceptions.TimeoutError:
|
except asyncio.exceptions.TimeoutError:
|
||||||
|
|||||||
@@ -514,7 +514,9 @@ class Host(AbortableEventEmitter):
|
|||||||
if self.hci_sink:
|
if self.hci_sink:
|
||||||
self.hci_sink.on_packet(bytes(packet))
|
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)
|
# Wait until we can send (only one pending command at a time)
|
||||||
async with self.command_semaphore:
|
async with self.command_semaphore:
|
||||||
assert self.pending_command is None
|
assert self.pending_command is None
|
||||||
|
|||||||
Reference in New Issue
Block a user