]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
USBOZY: by default, assume "No Janus"
authorc vw <dl1ycf@darc.de>
Thu, 13 Jan 2022 09:16:51 +0000 (10:16 +0100)
committerc vw <dl1ycf@darc.de>
Thu, 13 Jan 2022 09:16:51 +0000 (10:16 +0100)
radio.c

diff --git a/radio.c b/radio.c
index 5b7e5ec2bb2970eed980d6cf15ee3f1395fe2e50..45de86a1729bef36932e1726faf3f240dee55399 100644 (file)
--- a/radio.c
+++ b/radio.c
@@ -686,13 +686,21 @@ void start_radio() {
   device=radio->device;
 
   if ((protocol == ORIGINAL_PROTOCOL && device == DEVICE_METIS) ||
+#ifdef USBOZY
+      (protocol == ORIGINAL_PROTOCOL && device == DEVICE_OZY) ||
+#endif
       (protocol == NEW_PROTOCOL      && device == NEW_DEVICE_ATLAS)) {
     //
     // by default, assume there is a penelope board (no PennyLane)
     // when using an ATLAS bus system, to avoid TX overdrive due to
     // missing IQ scaling.
     //
-    atlas_penelope = 1;
+    atlas_penelope = 1;    // TX present, do IQ scaling
+#ifdef USBOZY
+    if (device == DEVICE_OZY) {
+      atlas_mic_source = 1;  // Defauolt: assume no "Janus"
+    }
+#endif
   }
   // set the default power output and max drive value
   drive_max=100.0;