projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f07396b
)
HermesLite adaptation for waterfall
author
c vw
<dl1ycf@darc.de>
Fri, 28 Feb 2020 09:17:57 +0000
(10:17 +0100)
committer
c vw
<dl1ycf@darc.de>
Fri, 28 Feb 2020 09:17:57 +0000
(10:17 +0100)
waterfall.c
patch
|
blob
|
history
diff --git
a/waterfall.c
b/waterfall.c
index 3dd004312f63954cbc26248719128854c90cc451..376d11416f7d286a9aed4d90f2881a3c38732f93 100644
(file)
--- a/
waterfall.c
+++ b/
waterfall.c
@@
-172,7
+172,11
@@
void waterfall_update(RECEIVER *rx) {
p=pixels;
samples=rx->pixel_samples;
for(i=0;i<width;i++) {
- sample=samples[i]+adc_attenuation[rx->adc];
+ if(have_rx_gain) {
+ sample=samples[i]+(float)(rx_gain_calibration-adc_attenuation[rx->adc]);
+ } else {
+ sample=samples[i]+(float)adc_attenuation[rx->adc];
+ }
average+=(int)sample;
if(sample<(float)rx->waterfall_low) {
*p++=colorLowR;