]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Fixed type in STRAIGHT keyer mode, thanks Graeme for pointing this out.
authorc vw <dl1ycf@darc.de>
Mon, 14 Sep 2020 07:23:21 +0000 (09:23 +0200)
committerc vw <dl1ycf@darc.de>
Mon, 14 Sep 2020 07:23:21 +0000 (09:23 +0200)
iambic.c

index 4e83dbe70d4bb28fe618682e624e021bc40326f3..8766b0a029c5d5458d737c4976180449cd413cba 100644 (file)
--- a/iambic.c
+++ b/iambic.c
@@ -412,8 +412,8 @@ static void* keyer_thread(void *arg) {
                     // If both paddles are pressed (should not happen), then
                     // the dash paddle wins.
                     if (*kdash) {                  // send manual dashes
-                      cw_key_up=960000;            // 20 sec maximum
-                      cw_key_down=0;
+                      cw_key_down=960000;            // 20 sec maximum
+                      cw_key_up=0;
                       gpio_cw_sidetone_set(1);
                       key_state=STRAIGHT;
                     }
@@ -432,7 +432,7 @@ static void* keyer_thread(void *arg) {
                // Wait for dash paddle being released in "straight key" mode.
                 //
                 if (! *kdash) {
-                  cw_key_up=0;
+                  cw_key_down=0;
                   gpio_cw_sidetone_set(0);
                  cwvox=cw_keyer_hang_time;
                   key_state=CHECK;