From 62310dc42fa14d0c5eb9f2c90d9b16d237e92268 Mon Sep 17 00:00:00 2001 From: c vw Date: Mon, 14 Sep 2020 09:23:21 +0200 Subject: [PATCH] Fixed type in STRAIGHT keyer mode, thanks Graeme for pointing this out. --- iambic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.45.2