From 0e7dbbe1b2276cf0f1754aeb830b7724c54dbdf2 Mon Sep 17 00:00:00 2001 From: c vw Date: Fri, 28 Feb 2020 10:17:57 +0100 Subject: [PATCH] HermesLite adaptation for waterfall --- waterfall.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/waterfall.c b/waterfall.c index 3dd0043..376d114 100644 --- a/waterfall.c +++ b/waterfall.c @@ -172,7 +172,11 @@ void waterfall_update(RECEIVER *rx) { p=pixels; samples=rx->pixel_samples; for(i=0;iadc]; + if(have_rx_gain) { + sample=samples[i]+(float)(rx_gain_calibration-adc_attenuation[rx->adc]); + } else { + sample=samples[i]+(float)adc_attenuation[rx->adc]; + } average+=(int)sample; if(sample<(float)rx->waterfall_low) { *p++=colorLowR; -- 2.45.2