From 3bd4b4cb7536e3fc0ec4d1ad198decac091b191c Mon Sep 17 00:00:00 2001 From: Paul Kronenwetter Date: Sat, 4 Jun 2022 20:48:00 -0400 Subject: [PATCH] Remove first packet send. Fix missed status enum reference. --- test/test_data_channel.py | 3 ++- test/util_data_channel_1.py | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/test/test_data_channel.py b/test/test_data_channel.py index f06a8f8f..afbb7872 100644 --- a/test/test_data_channel.py +++ b/test/test_data_channel.py @@ -87,7 +87,8 @@ def analyze_results(station1: list, station2: list, call_list: list): continue data = bytes(s1_item[0]) frametypeno = int.from_bytes(data[:1], "big") - frametype = static.FRAME_TYPE(frametypeno).name + # frametype = static.FRAME_TYPE(frametypeno).name + frametype = str(frametypeno) s1_crc = helpers.decode_call(helpers.bytes_to_callsign(data[1:4])) s2_crc = helpers.decode_call(helpers.bytes_to_callsign(data[2:5])) log.info( diff --git a/test/util_data_channel_1.py b/test/util_data_channel_1.py index 1e3bca42..443462b2 100644 --- a/test/util_data_channel_1.py +++ b/test/util_data_channel_1.py @@ -124,11 +124,6 @@ def t_highsnr_arq_short_station1( # time.sleep(0.5) # Construct message to dxstation. - # Tests seem to work better when this side sends a 'dummy' frame first. - data = {"type": "ping", "command": "ping", "dxcallsign": "BB4NN"} - sock.process_tnc_commands(json.dumps(data, indent=None)) - time.sleep(0.5) - b64_str = str(base64.b64encode(bytes(message, "UTF-8")), "UTF-8").strip() data = { "type": "arq",