mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Collapse repeated code to a function.
Add function parameter and return types. Move logging to a class variable. Extended use of FREEDV_MODE enum. Moved TESTING check to arq_cleanup.
This commit is contained in:
parent
2d5ebd5846
commit
f695e6e2af
|
@ -1392,7 +1392,6 @@ class DATA:
|
||||||
|
|
||||||
self.IS_ARQ_SESSION_MASTER = False
|
self.IS_ARQ_SESSION_MASTER = False
|
||||||
static.ARQ_SESSION = False
|
static.ARQ_SESSION = False
|
||||||
if not TESTMODE:
|
|
||||||
self.arq_cleanup()
|
self.arq_cleanup()
|
||||||
|
|
||||||
self.send_disconnect_frame()
|
self.send_disconnect_frame()
|
||||||
|
@ -2119,7 +2118,6 @@ class DATA:
|
||||||
# here we add the received station to the heard stations buffer
|
# here we add the received station to the heard stations buffer
|
||||||
dxcallsign = helpers.bytes_to_callsign(bytes(data_in[1:7]))
|
dxcallsign = helpers.bytes_to_callsign(bytes(data_in[1:7]))
|
||||||
self.log.debug("[TNC] received_cq:", dxcallsign=dxcallsign)
|
self.log.debug("[TNC] received_cq:", dxcallsign=dxcallsign)
|
||||||
|
|
||||||
dxgrid = bytes(helpers.decode_grid(data_in[7:11]), "UTF-8")
|
dxgrid = bytes(helpers.decode_grid(data_in[7:11]), "UTF-8")
|
||||||
self.send_data_to_socket_queue(
|
self.send_data_to_socket_queue(
|
||||||
freedata="tnc-message",
|
freedata="tnc-message",
|
||||||
|
|
Loading…
Reference in a new issue