]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Make PS and TX displays "peak mode".
authorc vw <dl1ycf@darc.de>
Sun, 5 Jan 2020 13:28:20 +0000 (14:28 +0100)
committerc vw <dl1ycf@darc.de>
Sun, 5 Jan 2020 13:28:20 +0000 (14:28 +0100)
receiver.c
transmitter.c

index cea6cebc0c5e343936463f05e44aa3a70c7ee4e0..717f15eb811e22a749db381fefc6c06f55f7a634 100644 (file)
@@ -889,8 +889,12 @@ fprintf(stderr,"create_pure_signal_receiver: id=%d buffer_size=%d\n",id,buffer_s
     init_analyzer(rx);
   }
 
-  SetDisplayDetectorMode(rx->id, 0, display_detector_mode);
-  SetDisplayAverageMode(rx->id, 0,  display_average_mode);
+  //
+  // This cannot be changed for the PS feedback receiver,
+  // use peak mode
+  //
+  SetDisplayDetectorMode(rx->id, 0, DETECTOR_MODE_PEAK);
+  SetDisplayAverageMode(rx->id, 0,  AVERAGE_MODE_NONE);
 
   return rx;
 }
index e3e618b6c4d2095ad5469f330712d2ca9862153a..e135beadce9ec3469bccb3656367af5912bcbdb1 100644 (file)
@@ -575,6 +575,13 @@ static void init_analyzer(TRANSMITTER *tx) {
             span_max_freq, //frequency at last pixel value
             max_w //max samples to hold in input ring buffers
     );
+   //
+   // This cannot be changed for the TX panel,
+   // use peak mode
+   //
+   SetDisplayDetectorMode(tx->id, 0, DETECTOR_MODE_PEAK);
+   SetDisplayAverageMode(tx->id, 0,  AVERAGE_MODE_NONE);
+
 
 }