From e12ce7f3c9b4d4bc8147a5836849ca0c3b9085ae Mon Sep 17 00:00:00 2001 From: c vw Date: Sun, 5 Jan 2020 14:28:20 +0100 Subject: [PATCH] Make PS and TX displays "peak mode". --- receiver.c | 8 ++++++-- transmitter.c | 7 +++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/receiver.c b/receiver.c index cea6ceb..717f15e 100644 --- a/receiver.c +++ b/receiver.c @@ -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; } diff --git a/transmitter.c b/transmitter.c index e3e618b..e135bea 100644 --- a/transmitter.c +++ b/transmitter.c @@ -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); + } -- 2.45.2