Skip to content

Commit

Permalink
intel driver: wait 200ms after the reboot bootloader
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverBzH committed Jan 10, 2024
1 parent 16ed46b commit 57419cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bumble/drivers/intel.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ async def download_fw_payload(host, fw: bytes, header_offset: int):
frag_len = 0


def reboot_bootloader(host): # type: ignore
async def reboot_bootloader(host): # type: ignore
host.send_command_sync( # type: ignore
Hci_Intel_Reset_Command(
reset_type=0x01,
Expand All @@ -246,6 +246,8 @@ def reboot_bootloader(host): # type: ignore
)
)

await asyncio.sleep(200 / 1000)


class Driver(common.Driver):
def __init__(self, host, version: IntelVersionTLV, firmware: bytes, fw_name: str):
Expand Down
2 changes: 1 addition & 1 deletion tools/intel_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async def do_reboot_bootloader(transport: str, force: bool):
print("Device not supported by this Intel driver")
return

intel.reboot_bootloader(host) # type: ignore
await intel.reboot_bootloader(host) # type: ignore


# -----------------------------------------------------------------------------
Expand Down

0 comments on commit 57419cd

Please sign in to comment.