From 321dda3fd9a3e34c7b92db9c09207bda60a63e9f Mon Sep 17 00:00:00 2001 From: Mashintime Date: Sun, 11 Feb 2024 13:09:51 -0500 Subject: [PATCH] Include custom args when starting rigctld --- modem/rigctld.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modem/rigctld.py b/modem/rigctld.py index 589db050..79ca0108 100644 --- a/modem/rigctld.py +++ b/modem/rigctld.py @@ -221,6 +221,7 @@ class radio: def format_rigctld_args(self): config = self.config['RADIO'] # Accessing the 'RADIO' section of the INI file + config_rigctld = self.config['RIGCTLD'] # Accessing the 'RIGCTLD' section of the INI file for custom args args = [] # Helper function to check if the value should be ignored @@ -251,5 +252,10 @@ class radio: if not should_ignore(config.get('stop_bits', "0")): args += ['--set-conf', f'stop_bits={config["stop_bits"]}'] + # Handle custom arguments for rigctld + # Custom args are split via ' ' so python doesn't add extranaeous quotes on windows + args += config_rigctld["arguments"].split(" ") + #print("Hamlib args ==>" + str(args)) + return args