]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Avoid having PS_FEEDBACK_RECEIVER the same channel as a normal receiver.
authorDL1YCF <dl1ycf@darc.de>
Tue, 18 May 2021 13:47:22 +0000 (15:47 +0200)
committerDL1YCF <dl1ycf@darc.de>
Tue, 18 May 2021 13:47:22 +0000 (15:47 +0200)
radio.c

diff --git a/radio.c b/radio.c
index 0479746ab794eed64dbc12b25e40454f2b063e55..bfd409dea7a319c115c19992b43420a00cfeacff 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -1229,8 +1229,14 @@ void start_radio() {
       RECEIVERS=1;
       MAX_RECEIVERS=RECEIVERS;
 #ifdef PURESIGNAL
-      PS_TX_FEEDBACK=0;
-      PS_RX_FEEDBACK=0;
+      //
+      // we cannot use the same receiver for normal RX and PS feedback
+      // so we must have two additional receivers, should we compile
+      // SOAPY with PURESIGNAL
+      // 
+      MAX_RECEIVERS=(RECEIVERS+2);
+      PS_TX_FEEDBACK=RECEIVERS;
+      PS_RX_FEEDBACK=RECEIVERS+1;
 #endif
       MAX_DDC=1;
       break;