There was an error while loading. Please reload this page.
2 parents 9ba1309 + a2ef2c1 commit 1ca1b90Copy full SHA for 1ca1b90
1 file changed
src/cditools/eiger_async.py
@@ -40,6 +40,7 @@
40
from ophyd_async.epics.adcore import (
41
ADBaseIO,
42
ADImageMode,
43
+ ADState,
44
AreaDetector,
45
NDFileIO,
46
NDPluginBaseIO,
@@ -528,7 +529,8 @@ async def wait_for_idle(self):
528
529
530
# We are intentionally not calling the base class implementation
531
async def ensure_ready(self):
- self._cached_acquire_state = await self.driver.acquire.get_value()
532
+ detector_state = await self.driver.detector_state.get_value()
533
+ self._cached_acquire_state = detector_state == ADState.ACQUIRE
534
self._cached_trigger_mode = await self.driver.trigger_mode.get_value()
535
self._cached_image_mode = await self.driver.image_mode.get_value()
536
0 commit comments