projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
276ccaf
)
slider should set gain, not attenuation
author
Ramakrishnan Muthukrishnan
<ram@leastauthority.com>
Wed, 8 Jun 2022 04:49:48 +0000
(10:19 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@leastauthority.com>
Wed, 8 Jun 2022 05:05:44 +0000
(10:35 +0530)
sliders.c
patch
|
blob
|
history
diff --git
a/sliders.c
b/sliders.c
index 694a0619df6117c17e8f417ebe708df7599fe2ce..70ae9c1666cc93766be1ca635ac7f87c299b8af8 100644
(file)
--- a/
sliders.c
+++ b/
sliders.c
@@
-859,8
+859,8
@@
fprintf(stderr,"sliders_init: width=%d height=%d\n", width,height);
gtk_range_set_value (GTK_RANGE(rf_gain_scale),adc[0].gain);
} 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].
attenuatio
n);
+ 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].
gai
n);
#ifdef SOAPYSDR
}
#endif