projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38d9994
)
stop/start old protcol when changing puresignal
author
c vw
<dl1ycf@darc.de>
Mon, 6 Jan 2020 09:49:52 +0000
(10:49 +0100)
committer
c vw
<dl1ycf@darc.de>
Mon, 6 Jan 2020 09:49:52 +0000
(10:49 +0100)
transmitter.c
patch
|
blob
|
history
diff --git
a/transmitter.c
b/transmitter.c
index e135beadce9ec3469bccb3656367af5912bcbdb1..b98d98caf7835c584de633b1bd86d059534526b6 100644
(file)
--- a/
transmitter.c
+++ b/
transmitter.c
@@
-1289,6
+1289,10
@@
void tx_set_displaying(TRANSMITTER *tx,int state) {
void tx_set_ps(TRANSMITTER *tx,int state) {
#ifdef PURESIGNAL
+ if (protocol == ORIGINAL_PROTOCOL) {
+ old_protocol_stop();
+ usleep(100000);
+ }
if(state) {
tx->puresignal=1;
SetPSControl(tx->id, 0, 0, 1, 0);
@@
-1302,6
+1306,9
@@
void tx_set_ps(TRANSMITTER *tx,int state) {
schedule_high_priority();
schedule_receive_specific();
}
+ if (protocol == ORIGINAL_PROTOCOL) {
+ old_protocol_run();
+ }
g_idle_add(ext_vfo_update,NULL);
#endif
}