From daa8604c7b2b39b61255439a571445a50cb5969f Mon Sep 17 00:00:00 2001 From: Mashintime Date: Sat, 18 Nov 2023 11:55:49 -0500 Subject: [PATCH] Fix a few cfg items in modem.py --- modem/modem.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modem/modem.py b/modem/modem.py index 71d50728..79302c8a 100644 --- a/modem/modem.py +++ b/modem/modem.py @@ -76,14 +76,13 @@ class RF: self.enable_audio_auto_tune = config['AUDIO']['enable_auto_tune'] self.enable_fsk = config['MODEM']['enable_fsk'] self.enable_fft = config['MODEM']['enable_fft'] - self.enable_scatter = config['MODEM']['enable_scatter'] self.tx_delay = config['MODEM']['tx_delay'] self.tuning_range_fmin = config['MODEM']['tuning_range_fmin'] self.tuning_range_fmax = config['MODEM']['tuning_range_fmax'] - self.radiocontrol = config['RADIO']['radiocontrol'] - self.rigctld_ip = config['RADIO']['rigctld_ip'] - self.rigctld_port = config['RADIO']['rigctld_port'] + self.radiocontrol = config['RADIO']['control'] + self.rigctld_ip = config['RIGCTLD']['ip'] + self.rigctld_port = config['RIGCTLD']['port'] self.states.set("is_transmitting", False) @@ -1184,9 +1183,7 @@ class RF: :param freedv: codec2 instance to query :type freedv: ctypes.c_void_p """ - if not self.enable_scatter: - return - + modemStats = codec2.MODEMSTATS() ctypes.cast( codec2.api.freedv_get_modem_extended_stats(freedv, ctypes.byref(modemStats)),