projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f1346b
)
fix meter issues
author
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Sat, 22 Jan 2022 13:24:38 +0000
(18:54 +0530)
committer
Ramakrishnan Muthukrishnan
<ram@rkrishnan.org>
Sat, 22 Jan 2022 13:24:38 +0000
(18:54 +0530)
meter.c
patch
|
blob
|
history
diff --git
a/meter.c
b/meter.c
index 4bad5d789177318799dcc5ba0dceabfefb591a83..e5e9cce53524cd86f271b4ae88246d970da8f6c1 100644
(file)
--- a/
meter.c
+++ b/
meter.c
@@
-192,7
+192,7
@@
if(analog_meter) {
switch(meter_type) {
case SMETER:
{
-
double offset = with_gain ? 0 : adc[rx->adc].attenuation
;
+
double offset = with_gain ? adc[rx->adc].attenuation : 0
;
if(have_rx_gain) {
level = value + rx_gain_calibration - offset;
} else {