From: c vw <dl1ycf@darc.de>
Date: Fri, 17 Dec 2021 16:51:11 +0000 (+0100)
Subject: Enable changing CW parameters if not compiled with LOCALCW, since
X-Git-Url: https://git.rkrishnan.org/simplejson/htmlfontify-example.html?a=commitdiff_plain;h=7c6a57305a24a924e738d1a4fd6c7fa8a322db0f;p=pihpsdr.git

Enable changing CW parameters if not compiled with LOCALCW, since
these parameters are used in HPSDR protocol.
---

diff --git a/actions.c b/actions.c
index 24c21ce..879165e 100644
--- a/actions.c
+++ b/actions.c
@@ -564,26 +564,14 @@ int process_action(void *data) {
       }
       break;
     case CW_FREQUENCY:
-#ifdef LOCALCW
-      value=KnobOrWheel(a, (double)cw_keyer_sidetone_frequency, 300.0, 1000.0, 10.0);
+      value=KnobOrWheel(a, (double)cw_keyer_sidetone_frequency, 400.0, 1000.0, 10.0);
       cw_keyer_sidetone_frequency=(int)value;
       g_idle_add(ext_vfo_update,NULL);
-#endif
-      break;
-    case CW_LEFT:
-    case CW_RIGHT:
-      if(a->mode==PRESSED || a->mode==RELEASED) {
-#ifdef LOCALCW
-        keyer_event(a->action==CW_LEFT,a->mode==PRESSED);
-#endif
-      }
       break;
     case CW_SPEED:
-#ifdef LOCALCW
       value=KnobOrWheel(a, (double)cw_keyer_speed, 1.0, 60.0, 1.0);
       cw_keyer_speed=(int)value;
       g_idle_add(ext_vfo_update,NULL);
-#endif
       break;
     case DIV:
       if(a->mode==PRESSED) {