From df7c2ea0caa72cbfbcbe0547367fbabc66363d45 Mon Sep 17 00:00:00 2001
From: DL1YCF <dl1ycf@darc.de>
Date: Fri, 5 Aug 2022 18:36:22 +0200
Subject: [PATCH] Measured the P2 CW break-in behaviour and adjusted the CW "rf
 delay" accordingly.

---
 new_protocol.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/new_protocol.c b/new_protocol.c
index dfe61b3..499e6cd 100644
--- a/new_protocol.c
+++ b/new_protocol.c
@@ -1282,7 +1282,13 @@ static void new_protocol_transmit_specific() {
     transmit_specific_buffer[10]=cw_keyer_weight; // cw weight
     transmit_specific_buffer[11]=cw_keyer_hang_time>>8;
     transmit_specific_buffer[12]=cw_keyer_hang_time; // cw hang delay
-    transmit_specific_buffer[13]=0; // rf delay
+    //
+    // Measurements with my Anan-7000 show that RF delays up to 20 msec
+    // tend to chop the first dot, and the "rising" envelope at the
+    // beginning of the dot is also not good. This was tested with the
+    // "straight key" option (external keyer attached to CW input jack).
+    //
+    transmit_specific_buffer[13]=30; // rf delay
 
     transmit_specific_buffer[50]=0;
     if(mic_linein) {
-- 
2.45.2