projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5090b05
)
Fixed MOX and TUNE not working for protocol 1 and protocol 2
author
John Melton G0ORX
<john.d.melton@googlemail.com>
Fri, 6 Mar 2020 11:08:46 +0000
(11:08 +0000)
committer
John Melton G0ORX
<john.d.melton@googlemail.com>
Fri, 6 Mar 2020 11:08:46 +0000
(11:08 +0000)
radio.c
patch
|
blob
|
history
diff --git
a/radio.c
b/radio.c
index a26e8d110421c71aef89b5803782271451ad941c..08d37e6b69bdea29e9ba6ad0df71310d96dcaca2 100644
(file)
--- a/
radio.c
+++ b/
radio.c
@@
-1301,7
+1301,7
@@
static void rxtx(int state) {
void setMox(int state) {
if(!can_transmit) return;
#ifdef SOAPYSDR
- if(!transmitter->local_microphone) return;
+ if(
protocol==SOAPYSDR_PROTOCOL &&
!transmitter->local_microphone) return;
#endif
vox_cancel(); // remove time-out
if(mox!=state) {
@@
-1378,7
+1378,9
@@
void setTune(int state) {
int i;
if(!can_transmit) return;
- if(!transmitter->local_microphone) return;
+#ifdef SOAPYSDR
+ if(protocol==SOAPYSDR_PROTOCOL && !transmitter->local_microphone) return;
+#endif
// if state==tune, this function is a no-op