mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
moved global callsign setting to data channel opener
This commit is contained in:
parent
fd38ebae8f
commit
d1db9218ef
2 changed files with 4 additions and 2 deletions
|
@ -2068,6 +2068,9 @@ class DATA:
|
|||
self.mycallsign = mycallsign
|
||||
self.dxcallsign = dxcallsign
|
||||
|
||||
Station.dxcallsign = dxcallsign
|
||||
Station.dxcallsign_crc = helpers.get_crc_24(Station.dxcallsign)
|
||||
|
||||
# override session connection attempts
|
||||
self.data_channel_max_retries = attempts
|
||||
|
||||
|
|
|
@ -684,8 +684,7 @@ class ThreadedTCPRequestHandler(socketserver.StreamRequestHandler):
|
|||
# then we are forcing a station ssid = 0
|
||||
dxcallsign = helpers.callsign_to_bytes(dxcallsign)
|
||||
dxcallsign = helpers.bytes_to_callsign(dxcallsign)
|
||||
Station.dxcallsign = dxcallsign
|
||||
Station.dxcallsign_crc = helpers.get_crc_24(Station.dxcallsign)
|
||||
|
||||
command_response("send_raw", True)
|
||||
else:
|
||||
dxcallsign = Station.dxcallsign
|
||||
|
|
Loading…
Reference in a new issue