mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Remove first packet send.
Fix missed status enum reference.
This commit is contained in:
parent
f0d327e98e
commit
3bd4b4cb75
2 changed files with 2 additions and 6 deletions
|
@ -87,7 +87,8 @@ def analyze_results(station1: list, station2: list, call_list: list):
|
||||||
continue
|
continue
|
||||||
data = bytes(s1_item[0])
|
data = bytes(s1_item[0])
|
||||||
frametypeno = int.from_bytes(data[:1], "big")
|
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]))
|
s1_crc = helpers.decode_call(helpers.bytes_to_callsign(data[1:4]))
|
||||||
s2_crc = helpers.decode_call(helpers.bytes_to_callsign(data[2:5]))
|
s2_crc = helpers.decode_call(helpers.bytes_to_callsign(data[2:5]))
|
||||||
log.info(
|
log.info(
|
||||||
|
|
|
@ -124,11 +124,6 @@ def t_highsnr_arq_short_station1(
|
||||||
# time.sleep(0.5)
|
# time.sleep(0.5)
|
||||||
|
|
||||||
# Construct message to dxstation.
|
# 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()
|
b64_str = str(base64.b64encode(bytes(message, "UTF-8")), "UTF-8").strip()
|
||||||
data = {
|
data = {
|
||||||
"type": "arq",
|
"type": "arq",
|
||||||
|
|
Loading…
Reference in a new issue