From a194116e4e0a5aea6aa739bc28cf85cabeb949f0 Mon Sep 17 00:00:00 2001
From: thijs snijder <snijder@astron.nl>
Date: Mon, 26 Sep 2022 16:08:42 +0200
Subject: [PATCH] L2SS-965 apply property during init

---
 tangostationcontrol/tangostationcontrol/devices/recv.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tangostationcontrol/tangostationcontrol/devices/recv.py b/tangostationcontrol/tangostationcontrol/devices/recv.py
index a3cd1b588..22b31f5c5 100644
--- a/tangostationcontrol/tangostationcontrol/devices/recv.py
+++ b/tangostationcontrol/tangostationcontrol/devices/recv.py
@@ -265,6 +265,11 @@ class RECV(opcua_device):
         # Restore the mask
         self.RCU_mask_RW = RCU_mask
 
+    def configure_for_initialise(self):
+        super().configure_for_initialise()
+        # apply the RCU_attenuator_dB config
+        self.RCU_attenuator_dB_RW = self.RCU_band_select_RW_default
+
     # --------
     # internal functions
     # --------
-- 
GitLab