]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Fix TUNE action
authorJohn Melton G0ORX <john.d.melton@googlemail.com>
Fri, 11 Dec 2020 16:33:23 +0000 (16:33 +0000)
committerJohn Melton G0ORX <john.d.melton@googlemail.com>
Fri, 11 Dec 2020 16:33:23 +0000 (16:33 +0000)
actions.c

index ce56edbff09f342fa37be7afb9cab1ae58e83aff..61b1d10800e87e9c091551cc1820123a59ff7711 100644 (file)
--- 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;