From 2a7f135753e026ed360b6f9a44cf720c9e951de6 Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 16 Jun 2026 21:18:54 +0200 Subject: [PATCH] fix(psi-motor): EpicsMotorEC was always skipping the extra check if motion failed --- ophyd_devices/devices/psi_motor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ophyd_devices/devices/psi_motor.py b/ophyd_devices/devices/psi_motor.py index be61a48..89e1c0f 100644 --- a/ophyd_devices/devices/psi_motor.py +++ b/ophyd_devices/devices/psi_motor.py @@ -332,7 +332,7 @@ class EpicsMotorEC(EpicsMotor): def _check_motion_status(self) -> tuple[bool, Exception | None]: success, exception = super()._check_motion_status() - if success: + if not success: # Additionally check for ECMC errors error = self.error.get(use_monitor=False) if error: