From b569cbc3156900a6561a24ad0a62e5e6ddc4d482 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Wed, 14 Feb 2024 16:20:00 +0100 Subject: [PATCH] adjusted a rigctld command --- modem/rigctld.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modem/rigctld.py b/modem/rigctld.py index 79ca0108..471d7469 100644 --- a/modem/rigctld.py +++ b/modem/rigctld.py @@ -246,12 +246,16 @@ class radio: if not should_ignore(config.get('serial_dcd', "0")): args += ['--set-dcd', config['serial_dcd']] if not should_ignore(config.get('serial_dtr', "0")): - args += ['--set-dtr', config['serial_dtr']] + args += ['--set-conf', f'dtr_state={config["serial_dtr"]}'] - # Handling Stop Bits with the corrected --set-conf syntax + # Handling Data Bits and Stop Bits + if not should_ignore(config.get('data_bits', "0")): + args += ['--set-conf', f'data_bits={config["data_bits"]}'] if not should_ignore(config.get('stop_bits', "0")): args += ['--set-conf', f'stop_bits={config["stop_bits"]}'] + # Fixme #rts_state + # Handle custom arguments for rigctld # Custom args are split via ' ' so python doesn't add extranaeous quotes on windows args += config_rigctld["arguments"].split(" ")