Skip to content
Snippets Groups Projects
Commit cdda3df4 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-846: fix bug

parent 0b22eae4
No related branches found
No related tags found
1 merge request!374Resolve L2SS-846: add disable_hardware to devices
......@@ -249,7 +249,7 @@ class RECV(opcua_device):
""" Disable the RECV hardware. """
# Save actual mask values
RCU_mask = self.RCU_mask_RW
RCU_mask = self.proxy.RCU_mask_RW
# Set the mask to all Trues
self.RCU_mask_RW = [True] * 32
# Turn off the RCUs
......
......@@ -286,13 +286,12 @@ class SDP(opcua_device):
def _disable_hardware(self):
""" Disable the SDP hardware. """
# Save actual mask values
TR_fpga_mask = self.TR_fpga_mask_RW
TR_fpga_mask = self.proxy.TR_fpga_mask_RW
# Set the mask to all Trues
self.TR_fpga_mask_RW = [True] * 16
# Boot the boot image firmware
self.proxy.FPGA_boot_image_RW = [0] * self.N_pn
self.FPGA_boot_image_RW = [0] * self.N_pn
# Restore the mask
self.TR_fpga_mask_RW = TR_fpga_mask
......
......@@ -211,7 +211,7 @@ class UNB2(opcua_device):
""" Disable the UNB2 hardware. """
# Save actual mask values
UNB2_mask = self.UNB2_mask_RW
UNB2_mask = self.proxy.UNB2_mask_RW
# Set the mask to all Trues
self.UNB2_mask_RW = [True] * 2
# Turn off the uniboards
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment