Skip to content

Commit

Permalink
remove debug, read fresh status on trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Braun committed Nov 26, 2024
1 parent dd6094d commit 3e387a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/secop_ophyd/SECoPDevices.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,14 +545,12 @@ async def __go_coro(self, wait_for_idle: bool):
def trigger(self) -> AsyncStatus:

async def go_or_read_on_busy():
module_status = await self.status.get_value(True)
module_status = await self.status.get_value(False)
stat_code = module_status["f0"]

if BUSY <= stat_code <= ERROR:
print(f"mass spec BUSY status:{stat_code}")
return

print('mass spec IDELE sending "GO" Command')
await self.__go_coro(True)

return AsyncStatus(awaitable=go_or_read_on_busy())
Expand Down

0 comments on commit 3e387a0

Please sign in to comment.