set_attenuation(adc[active_receiver->adc].attenuation);
if(display_sliders) {
if (have_rx_gain) {
- gtk_range_set_value (GTK_RANGE(attenuation_scale),(double)adc[active_receiver->adc].attenuation);
+ /* NOTREACHED */
+ gtk_range_set_value (GTK_RANGE(attenuation_scale),(double)adc[active_receiver->adc].gain);
} else {
gtk_range_set_value (GTK_RANGE(attenuation_scale),(double)adc[active_receiver->adc].attenuation);
}
} else {
#endif
rf_gain_scale=gtk_scale_new_with_range(GTK_ORIENTATION_HORIZONTAL,-12.0, 48.0, 1.0);
- gtk_range_set_value (GTK_RANGE(rf_gain_scale),adc[active_receiver->adc].attenuation);
+ gtk_range_set_value (GTK_RANGE(rf_gain_scale),adc[active_receiver->adc].gain);
#ifdef SOAPYSDR
}
#endif
for(i=0;i<width;i++) {
if(have_rx_gain) {
- sample=samples[i+pan]+(float)(rx_gain_calibration-adc[rx->adc].attenuation);
+ sample=samples[i+pan]+(float)(rx_gain_calibration-adc[rx->adc].gain);
} else {
sample=samples[i+pan]+(float)adc[rx->adc].attenuation;
}
if(rx->waterfall_automatic) {
- rx->waterfall_low=average/display_width;
+ rx->waterfall_low=average/width;
rx->waterfall_high=rx->waterfall_low+50;
}