flashtool: fix CAN bootloader request

Introduce a delay before exiting when requesting the bootloader.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2024-09-09 10:55:30 -04:00
parent 772817b4a3
commit 90eb71b610
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B

View File

@ -486,10 +486,10 @@ class CanSocket:
self._loop.add_reader(
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)