added respond to cq command via network

This commit is contained in:
DJ2LS 2022-11-29 07:28:28 +01:00
parent 8e6e464bfc
commit f9b0fc7da8

View file

@ -221,6 +221,18 @@ def process_tnc_commands(data):
command=received_json, 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 ---------------------------------------------------- # TRANSMIT TEST FRAME ----------------------------------------------------
if ( if (
received_json["type"] == "set" received_json["type"] == "set"