override ARQ SESSION STATE for allowing disconnect command

This commit is contained in:
DJ2LS 2022-11-21 00:18:01 +01:00
parent 93a39ce84f
commit 08de279787
2 changed files with 4 additions and 2 deletions

View file

@ -164,7 +164,8 @@ def t_datac0_1(
break
time.sleep(0.1)
log.info("station1, first")
# override ARQ SESSION STATE for allowing disconnect command
static.ARQ_SESSION_STATE = "connected"
data = {"type": "arq", "command": "disconnect", "dxcallsign": dxcall}
sock.process_tnc_commands(json.dumps(data, indent=None))
time.sleep(0.5)

View file

@ -170,7 +170,8 @@ def t_datac0_1(
log.debug("STOP test, resetting DX callsign")
static.DXCALLSIGN = orig_dxcall
static.DXCALLSIGN_CRC = helpers.get_crc_24(static.DXCALLSIGN)
# override ARQ SESSION STATE for allowing disconnect command
static.ARQ_SESSION_STATE = "connected"
data = {"type": "arq", "command": "disconnect", "dxcallsign": dxcall}
sock.process_tnc_commands(json.dumps(data, indent=None))
time.sleep(0.5)