Skip to content

Commit

Permalink
flashtool: fix CAN bootloader request
Browse files Browse the repository at this point in the history
Introduce a delay before exiting when requesting the bootloader.

Signed-off-by:  Eric Callahan <[email protected]>
  • Loading branch information
Arksine committed Sep 9, 2024
1 parent 772817b commit 90eb71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/flashtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,10 @@ async def run(
self._loop.add_reader(

This comment has been minimized.

Copy link
@q141410

q141410 Sep 29, 2024

是的是的

self.cansock.fileno(), self._handle_can_response)
self._jump_to_bootloader(uuid)
await asyncio.sleep(.5)
if req_only:
output_line("Bootloader request command sent")
return
await asyncio.sleep(.5)
self._reset_nodes()
await asyncio.sleep(1.0)
node = self._set_node_id(uuid)
Expand Down

0 comments on commit 90eb71b

Please sign in to comment.