Skip to content
Snippets Groups Projects
Commit a5e5a4d6 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-731: Fix reading of a devices's own attributes

parent 19332a93
No related branches found
No related tags found
1 merge request!319Resolve L2SS-731 "More useful dashboards"
......@@ -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):
......
......@@ -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")
)
# --------
......
......@@ -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")
)
# --------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment