mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 10:04:33 +02:00
attempt fixing ctest
This commit is contained in:
parent
51d7c681a6
commit
56701347fc
|
@ -103,9 +103,15 @@ def t_create_session_close(session_id: bytes) -> bytearray:
|
|||
:rtype: bytearray
|
||||
"""
|
||||
# return t_create_frame(223, mycall, dxcall)
|
||||
dxcallsign_bytes = helpers.callsign_to_bytes(dxcall)
|
||||
dxcallsign = helpers.bytes_to_callsign(dxcallsign_bytes)
|
||||
dxcallsign_crc = helpers.get_crc_24(dxcallsign)
|
||||
|
||||
|
||||
frame = bytearray(14)
|
||||
frame[:1] = bytes([223])
|
||||
frame[1:2] = session_id
|
||||
frame[2:5] = dxcallsign_crc
|
||||
|
||||
return frame
|
||||
|
||||
|
|
Loading…
Reference in a new issue