samples[display_width-1]=-200.0;
s1=(double)samples[0]+(double)adc_attenuation[rx->adc];
if (filter_board == ALEX && rx->adc == 0) s1 += (double)(10*rx->alex_attenuation);
+ if (filter_board == CHARLY25) {
+ if (rx->preamp) s1 -= 18.0;
+ if (rx->dither) s1 -= 18.0;
+ }
#ifdef SOAPYSDR
if(protocol==SOAPYSDR_PROTOCOL) {
s1-=rx->rf_gain;
for(i=1;i<display_width;i++) {
s2=(double)samples[i]+(double)adc_attenuation[rx->adc];
if (filter_board == ALEX && rx->adc == 0) s2 += (double)(10*rx->alex_attenuation);
+ if (filter_board == CHARLY25) {
+ if (rx->preamp) s2 -= 18.0;
+ if (rx->dither) s2 -= 18.0;
+ }
#ifdef SOAPYSDR
if(protocol==SOAPYSDR_PROTOCOL) {
s2-=rx->rf_gain;