projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
937b3da
)
Fix TUNE action
author
John Melton G0ORX
<john.d.melton@googlemail.com>
Fri, 11 Dec 2020 16:33:23 +0000
(16:33 +0000)
committer
John Melton G0ORX
<john.d.melton@googlemail.com>
Fri, 11 Dec 2020 16:33:23 +0000
(16:33 +0000)
actions.c
patch
|
blob
|
history
diff --git
a/actions.c
b/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;