From e008ceb409ef80155ce9f8a422bd841b2986d448 Mon Sep 17 00:00:00 2001 From: c vw Date: Thu, 30 Jan 2020 18:22:28 +0100 Subject: [PATCH] reset PS while tuning --- radio.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/radio.c b/radio.c index 45dc928..671a364 100644 --- a/radio.c +++ b/radio.c @@ -1381,6 +1381,13 @@ void setTune(int state) { mox=0; } if(state) { + if (transmitter->puresignal) { + // + // Reset PS engine + // + SetPSControl(transmitter->id, 1, 0, 0, 0); + usleep(50000); + } if(full_tune) { if(OCfull_tune_time!=0) { struct timeval te; @@ -1465,6 +1472,12 @@ void setTune(int state) { cw_keyer_internal=pre_tune_cw_internal; break; } + if (transmitter->puresignal) { + // + // Resume PS + // + SetPSControl(transmitter->id, 0, 0, 1, 0); + } } tune=state; } -- 2.45.2