diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index 546607c..3f593b9 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -388,13 +388,12 @@ class Timepix(PSIDeviceBase, TimePixControl): status_backend = DeviceStatus(self) # Add callback that starts the acquisition on the detector status_backend.add_callback(trigger_callback) - # Prepare the backend, attach the status to the state of the backend - status_backend = self.backend.on_trigger(status=status_backend) - # Prepare the camera status that resolves when the camera is finished acquiring status_camera = TransitionStatus( self.cam.acquire_busy, [ACQUIRESTATUS.ACQUIRING, ACQUIRESTATUS.DONE] ) + # Prepare the backend, attach the status to the state of the backend + status_backend = self.backend.on_trigger(status=status_backend) # TODO cleanup and test def failed_to_start_collect_cb(status: DeviceStatus):