From 7c6a57305a24a924e738d1a4fd6c7fa8a322db0f Mon Sep 17 00:00:00 2001 From: c vw Date: Fri, 17 Dec 2021 17:51:11 +0100 Subject: [PATCH] Enable changing CW parameters if not compiled with LOCALCW, since these parameters are used in HPSDR protocol. --- actions.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) 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) { -- 2.45.2