mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Add function docstring to received_session_close.
This commit is contained in:
parent
d2e38b77eb
commit
0e43f65bc2
1 changed files with 9 additions and 1 deletions
|
@ -1130,7 +1130,15 @@ class DATA():
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
|
|
||||||
def received_session_close(self, data_in:bytes):
|
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.
|
# Close the session if the DXCALLSIGN_CRC matches the station in static.
|
||||||
if helpers.check_callsign(static.DXCALLSIGN, bytes(data_in[4:7])):
|
if helpers.check_callsign(static.DXCALLSIGN, bytes(data_in[4:7])):
|
||||||
static.ARQ_SESSION_STATE = 'disconnected'
|
static.ARQ_SESSION_STATE = 'disconnected'
|
||||||
|
|
Loading…
Reference in a new issue