From e419907dca14c849a84090636e0701080a1f0591 Mon Sep 17 00:00:00 2001 From: appel_c Date: Thu, 21 May 2026 16:28:39 +0200 Subject: [PATCH] fix(timepix): Add last error call to backend to potentially clear a last error if present. --- superxas_bec/devices/timepix/timepix.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/superxas_bec/devices/timepix/timepix.py b/superxas_bec/devices/timepix/timepix.py index a27acf0..0095535 100644 --- a/superxas_bec/devices/timepix/timepix.py +++ b/superxas_bec/devices/timepix/timepix.py @@ -632,6 +632,11 @@ class Timepix(PSIDeviceBase, TimePixControl): def on_stage(self) -> StatusBase | None: """Called while staging the device.""" + ### Clean last error on backend + last_error = self.backend.timepix_fly_client.last_error() + if last_error: + logger.info(f"TimeipxFly backend reports about last error: {last_error}") + ### self.accumulated_data_e1 = None self.accumulated_data_e2 = None scan_msg: ScanStatusMessage = self.scan_info.msg # type: ignore