disabled not needed config parameters. TODO: Need to remove them if not crashing

This commit is contained in:
DJ2LS 2022-11-29 08:50:00 +01:00
parent f426964bdf
commit ff3ee7b3cf
2 changed files with 18 additions and 16 deletions

View file

@ -56,14 +56,15 @@ class CONFIG:
}
self.config['RADIO'] = {'#Radio settings': None,
'radiocontrol': data[13],
'devicename': data[5],
'deviceport': data[6],
'serialspeed': data[7],
'pttprotocol': data[8],
'pttport': data[9],
'data_bits': data[10],
'stop_bits': data[11],
'handshake': data[12],
# TODO: disabled because we dont need these settings anymore
#'devicename': data[5],
#'deviceport': data[6],
#'serialspeed': data[7],
#'pttprotocol': data[8],
#'pttport': data[9],
#'data_bits': data[10],
#'stop_bits': data[11],
#'handshake': data[12],
'rigctld_ip': data[14],
'rigctld_port': data[15]
}

View file

@ -278,14 +278,15 @@ if __name__ == "__main__":
static.AUDIO_INPUT_DEVICE = int(config['AUDIO']['rx'])
static.AUDIO_OUTPUT_DEVICE = int(config['AUDIO']['tx'])
static.PORT = int(config['NETWORK']['tncport'])
static.HAMLIB_DEVICE_NAME = config['RADIO']['devicename']
static.HAMLIB_DEVICE_PORT = config['RADIO']['deviceport']
static.HAMLIB_PTT_TYPE = config['RADIO']['pttprotocol']
static.HAMLIB_PTT_PORT = config['RADIO']['pttport']
static.HAMLIB_SERIAL_SPEED = str(config['RADIO']['serialspeed'])
static.HAMLIB_DATA_BITS = str(config['RADIO']['data_bits'])
static.HAMLIB_STOP_BITS = str(config['RADIO']['stop_bits'])
static.HAMLIB_HANDSHAKE = config['RADIO']['handshake']
# TODO: disabled because we don't need these settings anymore.
#static.HAMLIB_DEVICE_NAME = config['RADIO']['devicename']
#static.HAMLIB_DEVICE_PORT = config['RADIO']['deviceport']
#static.HAMLIB_PTT_TYPE = config['RADIO']['pttprotocol']
#static.HAMLIB_PTT_PORT = config['RADIO']['pttport']
#static.HAMLIB_SERIAL_SPEED = str(config['RADIO']['serialspeed'])
#static.HAMLIB_DATA_BITS = str(config['RADIO']['data_bits'])
#static.HAMLIB_STOP_BITS = str(config['RADIO']['stop_bits'])
#static.HAMLIB_HANDSHAKE = config['RADIO']['handshake']
static.HAMLIB_RADIOCONTROL = config['RADIO']['radiocontrol']
static.HAMLIB_RIGCTLD_IP = config['RADIO']['rigctld_ip']
static.HAMLIB_RIGCTLD_PORT = str(config['RADIO']['rigctld_port'])