double offset;
cairo_t *cr;
cr = cairo_create (meter_surface);
-
if(analog_meter) {
cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
cairo_paint (cr);
case SMETER:
{
double level=value+(double)adc_attenuation[rx->adc];
+#ifdef SOAPYSDR
+ if(protocol==SOAPYSDR_PROTOCOL) {
+ level-=rx->rf_gain;
+ }
+#endif
if (filter_board == CHARLY25) {
// preamp/dither encodes the preamp level
if (rx->preamp) level -= 18.0;
text_location=10;
offset=5.0;
double level=value+(double)adc_attenuation[rx->adc];
+#ifdef SOAPYSDR
+ if(protocol==SOAPYSDR_PROTOCOL) {
+ level-=rx->rf_gain;
+ }
+#endif
if (filter_board == CHARLY25) {
// preamp/dither encodes the preamp level
if (rx->preamp) level -= 18.0;
}
static void analog_cb(GtkToggleButton *widget, gpointer data) {
- if(gtk_toggle_button_get_active(widget)) {
- analog_meter=gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
- }
+ analog_meter=gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget));
}