From 091b69ee87fce5e63bd01190c152e2a1f29a426a Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Fri, 26 Apr 2024 20:37:41 +0200 Subject: [PATCH] work on swr/tuner --- freedata_server/rigctld.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/freedata_server/rigctld.py b/freedata_server/rigctld.py index 7111839a..a5888091 100644 --- a/freedata_server/rigctld.py +++ b/freedata_server/rigctld.py @@ -228,7 +228,11 @@ class radio: if self.connected: try: result = self.send_command('u TUNER') - state = result == 1 + if result == 1: + state = True + else: + state = False + self.parameters['tuner'] = state # Update TUNER state in parameters return True except Exception as err: