reduced logging and changed version

This commit is contained in:
DJ2LS 2023-05-06 16:10:31 +02:00
parent 55a887c142
commit 8b4b2efd27
2 changed files with 5 additions and 5 deletions

View file

@ -461,8 +461,8 @@ class DATA:
:param repeat_delay: Delay time before sending repeat frame, defaults to 0
:type repeat_delay: int, optional
"""
print(frame_to_tx[0])
print(frame_to_tx)
#print(frame_to_tx[0])
#print(frame_to_tx)
frame_type = FR_TYPE(int.from_bytes(frame_to_tx[0][:1], byteorder="big")).name
self.log.debug("[TNC] enqueue_frame_for_tx", c2_mode=FREEDV_MODE(c2_mode).name, data=frame_to_tx,
type=frame_type)
@ -566,7 +566,7 @@ class DATA:
def send_retransmit_request_frame(self) -> None:
# check where a None is in our burst buffer and do frame+1, because lists start at 0
# FIXME: Check to see if there's a `frame - 1` in the receive portion. Remove both if there is.
print(ARQ.rx_burst_buffer)
#print(ARQ.rx_burst_buffer)
missing_frames = [
frame + 1
for frame, element in enumerate(ARQ.rx_burst_buffer)
@ -1251,7 +1251,7 @@ class DATA:
while (payload_per_frame * n_frames_per_burst) % len(data_out[bufferposition_burst_start:]) == (
payload_per_frame * n_frames_per_burst):
threading.Event().wait(0.01)
print((payload_per_frame * n_frames_per_burst) % len(data_out))
#print((payload_per_frame * n_frames_per_burst) % len(data_out))
n_frames_per_burst += 1
if n_frames_per_burst == self.max_n_frames_per_burst:
break

View file

@ -127,7 +127,7 @@ class TCIParam:
@dataclass
class TNC:
version = "0.9.0-alpha.2"
version = "0.9.0-alpha.3"
host: str = "0.0.0.0"
port: int = 3000
SOCKET_TIMEOUT: int = 1 # seconds