small pep8 improvement

This commit is contained in:
dj2ls 2022-10-28 11:11:47 +02:00
parent 58e44a2dbb
commit 65dde27e6b

View file

@ -495,7 +495,6 @@ class DATA:
# TODO: Do we have to send ident frame? # TODO: Do we have to send ident frame?
# self.enqueue_frame_for_tx([ack_frame, self.send_ident_frame(False)], c2_mode=FREEDV_MODE.datac0.value, copies=3, repeat_delay=0) # self.enqueue_frame_for_tx([ack_frame, self.send_ident_frame(False)], c2_mode=FREEDV_MODE.datac0.value, copies=3, repeat_delay=0)
self.enqueue_frame_for_tx([nack_frame], c2_mode=FREEDV_MODE.datac0.value, copies=1, repeat_delay=0) self.enqueue_frame_for_tx([nack_frame], c2_mode=FREEDV_MODE.datac0.value, copies=1, repeat_delay=0)
def send_burst_nack_frame_watchdog(self, snr: float = 0) -> None: def send_burst_nack_frame_watchdog(self, snr: float = 0) -> None:
"""Build and send NACK frame for watchdog timeout""" """Build and send NACK frame for watchdog timeout"""
nack_frame = bytearray(self.length_sig1_frame) nack_frame = bytearray(self.length_sig1_frame)
@ -1693,7 +1692,6 @@ class DATA:
) )
self.datachannel_timeout = True self.datachannel_timeout = True
# Attempt to cleanup the far-side, if it received the # Attempt to cleanup the far-side, if it received the
# open_session frame and can still hear us. # open_session frame and can still hear us.
self.close_session() self.close_session()
@ -1840,7 +1838,6 @@ class DATA:
self.enqueue_frame_for_tx([connection_frame], c2_mode=FREEDV_MODE.datac0.value, copies=1, repeat_delay=0) self.enqueue_frame_for_tx([connection_frame], c2_mode=FREEDV_MODE.datac0.value, copies=1, repeat_delay=0)
self.log.info( self.log.info(
"[TNC] ARQ | DATA | RX | [" "[TNC] ARQ | DATA | RX | ["
+ str(mycallsign, "UTF-8") + str(mycallsign, "UTF-8")