From 353d904fa26fdd8891eea07ab8c4cf26a523a814 Mon Sep 17 00:00:00 2001 From: stedif <stefano.difrischia@inaf.it> Date: Mon, 4 Apr 2022 16:19:49 +0200 Subject: [PATCH] L2SS-630: refactor apsct fix --- tangostationcontrol/tangostationcontrol/devices/apsct.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tangostationcontrol/tangostationcontrol/devices/apsct.py b/tangostationcontrol/tangostationcontrol/devices/apsct.py index 38beb7aee..5fee76357 100644 --- a/tangostationcontrol/tangostationcontrol/devices/apsct.py +++ b/tangostationcontrol/tangostationcontrol/devices/apsct.py @@ -96,8 +96,7 @@ class APSCT(opcua_device): self.read_attribute("APSCT_PLL_200MHz_locked_R") and self.read_attribute("APSCT_PLL_200MHz_error_R"), self.read_attribute("APSCT_PLL_160MHz_locked_R") and self.read_attribute("APSCT_PLL_160MHz_error_R")] for e in errors: - if e is True: - return True + if e is True: return True return False APSCT_TEMP_error_R = attribute(dtype=bool) -- GitLab