From 3bc4d9f9093b6593463196b23e78c8bc27d39909 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Fri, 25 Feb 2022 16:58:52 +0100 Subject: [PATCH] L2SS-592: Fix loading firmware check --- tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py b/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py index eb9d1c5d4..db7c1ffbc 100644 --- a/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py +++ b/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py @@ -237,7 +237,7 @@ class SDP(opcua_device): # wait for the firmware to be loaded (ignoring masked out elements) mask = self.proxy.TR_fpga_mask_RW - self.wait_attribute("FPGA_boot_image_R", lambda attr: (attr == 1) | ~mask, 10) + self.wait_attribute("FPGA_boot_image_R", lambda attr: ((attr == 1) | ~mask).all(), 10) # -------- # Commands -- GitLab