mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
added respond to cq command via network
This commit is contained in:
parent
8e6e464bfc
commit
f9b0fc7da8
1 changed files with 12 additions and 0 deletions
12
tnc/sock.py
12
tnc/sock.py
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue