Rename ACK to BURST_ACK.

This commit is contained in:
Paul Kronenwetter 2022-06-24 09:48:50 -04:00
parent efc9950090
commit 1d760d61af
2 changed files with 3 additions and 3 deletions

View file

@ -272,7 +272,7 @@ class DATA:
# self.c_lib.freedv_set_sync(freedv, 0)
# BURST ACK
elif frametype == FR_TYPE.ACK.value:
elif frametype == FR_TYPE.BURST_ACK.value:
self.log.debug("[TNC] ACK RECEIVED....")
self.burst_ack_received(bytes_out[:-2])
@ -425,7 +425,7 @@ class DATA:
def send_burst_ack_frame(self, snr) -> None:
"""Build and send ACK frame for burst DATA frame"""
ack_frame = bytearray(14)
ack_frame[:1] = bytes([FR_TYPE.ACK.value])
ack_frame[:1] = bytes([FR_TYPE.BURST_ACK.value])
ack_frame[1:4] = static.DXCALLSIGN_CRC
ack_frame[4:7] = static.MYCALLSIGN_CRC
ack_frame[7:8] = bytes([int(snr)])

View file

@ -132,7 +132,7 @@ class FRAME_TYPE(Enum):
BURST_01 = 10
# ...
BURST_51 = 50
ACK = 60
BURST_ACK = 60
FR_ACK = 61
FR_REPEAT = 62
FR_NACK = 63