diff --git a/tnc/daemon.py b/tnc/daemon.py index bb651e93..61712754 100755 --- a/tnc/daemon.py +++ b/tnc/daemon.py @@ -159,6 +159,16 @@ class DAEMON: # data[26] ssid_list # data[27] auto_tune # data[28] stats + # TODO: We need to remove 5-12 and adjust the list number for other paramters + # This is only a dirty fix + data[5] = False + data[6] = False + data[7] = False + data[8] = False + data[9] = False + data[10] = False + data[11] = False + data[12] = False if data[0] == "STARTTNC": self.log.warning("[DMN] Starting TNC", rig=data[5], port=data[6]) @@ -301,26 +311,12 @@ class DAEMON: #os.kill(static.TNCPROCESS, signal.SIGKILL) static.TNCSTARTED = False """ - # data[1] devicename - # data[2] deviceport - # data[3] serialspeed - # data[4] pttprotocol - # data[5] pttport - # data[6] data_bits - # data[7] stop_bits - # data[8] handshake + # data[9] radiocontrol # data[10] rigctld_ip # data[11] rigctld_port if data[0] == "TEST_HAMLIB": - devicename = data[1] - deviceport = data[2] - serialspeed = data[3] - pttprotocol = data[4] - pttport = data[5] - data_bits = data[6] - stop_bits = data[7] - handshake = data[8] + radiocontrol = data[9] rigctld_ip = data[10] rigctld_port = data[11] diff --git a/tnc/sock.py b/tnc/sock.py index 4ce81234..970ee72b 100644 --- a/tnc/sock.py +++ b/tnc/sock.py @@ -879,7 +879,6 @@ def send_daemon_state(): "command": "daemon_state", "daemon_state": [], "python_version": str(python_version), - "hamlib_version": static.HAMLIB_VERSION, "input_devices": static.AUDIO_INPUT_DEVICES, "output_devices": static.AUDIO_OUTPUT_DEVICES, "serial_devices": static.SERIAL_DEVICES,