diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py b/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py index 574fede48a3c1bf36672902fd1777686e63aa4e5..914c84441b2170a68cba9b0372639ea25bc76e4d 100644 --- a/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py +++ b/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py @@ -191,7 +191,7 @@ class SDP(opcua_device): def read_FPGA_processing_error_R(self): return self.read_attribute("TR_fpga_mask_R") & ( ~self.read_attribute("FPGA_processing_enable_R") - | (self.read_attribute("FPGA_boot_image_R") == 0) + | (self.read_attribute("FPGA_boot_image_R") <= 0) ) def read_FPGA_input_error_R(self): diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/sst.py b/tangostationcontrol/tangostationcontrol/devices/sdp/sst.py index a1771325fbf3f5a662339a5476a25ebb8733250a..2ce9d18a718ec3ee61378299b6a45ce7d1acaf83 100644 --- a/tangostationcontrol/tangostationcontrol/devices/sdp/sst.py +++ b/tangostationcontrol/tangostationcontrol/devices/sdp/sst.py @@ -115,7 +115,7 @@ class SST(Statistics): def read_FPGA_processing_error_R(self): return self.sdp_proxy.TR_fpga_mask_RW & ( - ~self.proxy.FPGA_sst_offload_enable_R + ~self.read_attribute("FPGA_sst_offload_enable_R") ) # -------- diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/xst.py b/tangostationcontrol/tangostationcontrol/devices/sdp/xst.py index 173d33ecb2fa3daed947a7d9d0239cfeab4044b5..443012ced8b29c6a34c4a4c57932554733ba022c 100644 --- a/tangostationcontrol/tangostationcontrol/devices/sdp/xst.py +++ b/tangostationcontrol/tangostationcontrol/devices/sdp/xst.py @@ -239,7 +239,8 @@ class XST(Statistics): def read_FPGA_processing_error_R(self): return self.sdp_proxy.TR_fpga_mask_RW & ( - ~self.proxy.FPGA_xst_offload_enable_R + ~self.read_attribute("FPGA_xst_offload_enable_R") + | ~self.read_attribute("FPGA_xst_processing_enable_R") ) # --------