Skip to content

Commit

Permalink
fix(api): add 10s delay after updating the plate reader to give time …
Browse files Browse the repository at this point in the history
…to boot-up. (#16882)
  • Loading branch information
vegano1 authored Nov 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c0f95de commit abaade6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -312,6 +312,8 @@ async def update_device(self, firmware_file_path: str) -> Tuple[bool, str]:
log.debug(f"Updating {self.name}: {self.port} with {firmware_file_path}")
self._updating = True
success, res = await self._driver.update_firmware(firmware_file_path)
# it takes time for the plate reader to re-init after an update.
await asyncio.sleep(10)
self._device_info = await self._driver.get_device_info()
await self._poller.start()
self._updating = False

0 comments on commit abaade6

Please sign in to comment.