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 re-initialize.
  • Loading branch information
vegano1 committed Nov 19, 2024
1 parent 29e03ae commit 5b646dd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b646dd

Please sign in to comment.