Add function docstring to received_session_close.

This commit is contained in:
Paul Kronenwetter 2022-05-01 11:41:40 -04:00
parent d2e38b77eb
commit 0e43f65bc2

View file

@ -1130,7 +1130,15 @@ class DATA():
time.sleep(0.01)
def received_session_close(self, data_in:bytes):
""" """
"""
Closes the session when a close session frame is received and
the DXCALLSIGN_CRC matches the remote station participating in the session.
Args:
data_in:bytes:
Returns:
"""
# Close the session if the DXCALLSIGN_CRC matches the station in static.
if helpers.check_callsign(static.DXCALLSIGN, bytes(data_in[4:7])):
static.ARQ_SESSION_STATE = 'disconnected'