From: c vw <dl1ycf@darc.de>
Date: Mon, 14 Sep 2020 07:23:21 +0000 (+0200)
Subject: Fixed type in STRAIGHT keyer mode, thanks Graeme for pointing this out.
X-Git-Url: https://git.rkrishnan.org/pf/content/frontends//%22?a=commitdiff_plain;h=62310dc42fa14d0c5eb9f2c90d9b16d237e92268;p=pihpsdr.git

Fixed type in STRAIGHT keyer mode, thanks Graeme for pointing this out.
---

diff --git a/iambic.c b/iambic.c
index 4e83dbe..8766b0a 100644
--- 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;