From f9b0fc7da8608d1c45a802ebdacfec18179c6a98 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Tue, 29 Nov 2022 07:28:28 +0100 Subject: [PATCH] added respond to cq command via network --- tnc/sock.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tnc/sock.py b/tnc/sock.py index fc9ab0a5..da9b3d07 100644 --- a/tnc/sock.py +++ b/tnc/sock.py @@ -221,6 +221,18 @@ def process_tnc_commands(data): command=received_json, ) + # SET ENABLE RESPOND TO CQ ----------------------------------------------------- + if received_json["type"] == "set" and received_json["command"] == "respond_to_cq": + try: + static.RESPOND_TO_CQ = received_json["state"] in ['true', 'True', True] + command_response("respond_to_cq", True) + + except Exception as err: + command_response("respond_to_cq", False) + log.warning( + "[SCK] CQ command execution error", e=err, command=received_json + ) + # TRANSMIT TEST FRAME ---------------------------------------------------- if ( received_json["type"] == "set"