From 7871ffb3a772c80aa117fc2e67dd6cd162873e02 Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Mon, 6 Mar 2023 13:03:51 +0100 Subject: [PATCH] tx delay delay optimisation when opening data channel --- tnc/data_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tnc/data_handler.py b/tnc/data_handler.py index 02ad4b1b..70411978 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -2078,7 +2078,7 @@ class DATA: self.enqueue_frame_for_tx([connection_frame], c2_mode=FREEDV_MODE.datac0.value, copies=1, repeat_delay=0) - timeout = time.time() + 3 + timeout = time.time() + 3 + (static.TX_DELAY/1000 * 2) while time.time() < timeout: threading.Event().wait(0.01) # Stop waiting if data channel is opened