From 53a7a31fa4e6d57212a4692ee7fe180dd5f4abc5 Mon Sep 17 00:00:00 2001 From: John Melton G0ORX Date: Fri, 11 Dec 2020 16:33:23 +0000 Subject: [PATCH] Fix TUNE action --- actions.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/actions.c b/actions.c index ce56edb..61b1d10 100644 --- a/actions.c +++ b/actions.c @@ -510,18 +510,17 @@ int switch_action(void *data) { } break; case TUNE: - if(getMox()==1) { + if(getMox()==1) { setMox(0); } - if(getTune()==1) { - setTune(0); + if(getTune()==0) { if(canTransmit() || tx_out_of_band) { setTune(1); } else { transmitter_set_out_of_band(transmitter); } } else { - setTune(a->state); + setTune(0); } g_idle_add(ext_vfo_update,NULL); break; -- 2.45.2