]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Remove lenghening of first dit because measurements show it is not necessary
authorc vw <dl1ycf@darc.de>
Wed, 8 Aug 2018 17:45:37 +0000 (19:45 +0200)
committerc vw <dl1ycf@darc.de>
Wed, 8 Aug 2018 17:45:37 +0000 (19:45 +0200)
iambic.c

index 14ddc9992d7f6c29ace9fd54c04192396b17e005..a3a6799bda2893ebd2a6defe8b7701121bb05a14 100644 (file)
--- a/iambic.c
+++ b/iambic.c
@@ -120,7 +120,6 @@ static sem_t cw_event;
 #endif
 
 static int cwvox = 0;
-static int first_dot = 0;
 
 int keyer_out = 0;
 
@@ -166,7 +165,6 @@ void keyer_event(int gpio, int level) {
         if (running && !cwvox && !mox) {
           g_idle_add(ext_mox_update, (gpointer)(long) 1);
            cwvox=(int) vox_hang;
-          first_dot=1;
        }
     }
     if (gpio == CWL_BUTTON) {
@@ -266,18 +264,10 @@ fprintf(stderr,"keyer_thread  state running= %d\n", running);
             case PREDOT:                         // need to clear any pending dots or dashes
                 clear_memory();
                 key_state = SENDDOT;
-               if (first_dot) {                // make the first "dot" or "dash" after automatic
-                  kdelay = -15;                // PTT switching 15 msec longer
-                  first_dot = 0;
-               }
                 break;
             case PREDASH:
                 clear_memory();
                 key_state = SENDDASH;
-               if (first_dot) {                // make the first "dot" or "dash" after automatic
-                  kdelay = -15;                // PTT switching 15 msec longer
-                  first_dot = 0;
-               }
                 break;
 
             // dot paddle  pressed so set keyer_out high for time dependant on speed