From 4a50c9c9d070ee926d30592b79a8685735264c5a Mon Sep 17 00:00:00 2001 From: Paul Kronenwetter Date: Sun, 3 Jul 2022 14:06:01 -0400 Subject: [PATCH] Remove compression factor calculation. This is done in arq_transmit and should not be needed here. --- tnc/data_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tnc/data_handler.py b/tnc/data_handler.py index c73d0c80..bef0d76d 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -1490,7 +1490,7 @@ class DATA: # we need to compress data for gettin a compression factor. # so we are compressing twice. This is not that nice and maybe there is another way # for calculating transmission statistics - static.ARQ_COMPRESSION_FACTOR = len(data_out) / len(zlib.compress(data_out)) + # static.ARQ_COMPRESSION_FACTOR = len(data_out) / len(zlib.compress(data_out)) self.arq_open_data_channel(mode, n_frames_per_burst, mycallsign) @@ -1777,6 +1777,7 @@ class DATA: """ if not str(dxcallsign).strip(): + # TODO: We should display a message to this effect on the UI. self.log.warning("[TNC] Missing required callsign", dxcallsign=dxcallsign) return static.DXCALLSIGN = dxcallsign