moved global callsign setting to data channel opener

This commit is contained in:
DJ2LS 2023-05-09 15:04:23 +02:00
parent fd38ebae8f
commit d1db9218ef
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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