projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97d4e3f
)
default rx gain
author
Ramakrishnan Muthukrishnan
<ram@leastauthority.com>
Wed, 8 Jun 2022 04:48:22 +0000
(10:18 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@leastauthority.com>
Wed, 8 Jun 2022 05:05:44 +0000
(10:35 +0530)
radio.c
patch
|
blob
|
history
diff --git
a/radio.c
b/radio.c
index 86c9a745f10b99fcd70bb37802504aa2671684bb..575078e3e252c50872adf356fbceb21b70159314 100644
(file)
--- a/
radio.c
+++ b/
radio.c
@@
-1150,11
+1150,11
@@
void start_radio() {
adc[0].max_gain=+48.0;
}
- /* if (have_rx_gain) { */
- /* adc[0].attenuation = 14; */
- /* } else { */
- /* adc[0].attenuation = 0; */
- /* } */
+ if (have_rx_gain) {
+ adc[0].gain = 14.0;
+ } else {
+ adc[0].attenuation = 0;
+ }
#ifdef SOAPYSDR
adc[0].antenna = 0;