Guenael / rtlsdr-wsprd

WSPR daemon for RTL receivers
GNU General Public License v3.0
112 stars 32 forks source link

Fix default value for gain #17

Closed dforsi closed 2 years ago

dforsi commented 6 years ago

This value is in tenths of a dB.

Swell1 commented 3 years ago

when I tried this the performance dropped, no more spots with autogain set to on (-a 1)

dforsi commented 3 years ago

This PR fixes an inconsistency between the --help message and the code.

The --help says that the default value for gain is 29 here, but to set a gain of 29 you must use 290 here; this is consistent with how the value passed on the command line -g is handled here.

If autogain doesn't work for you, then it is an entirely different matter that should be addressed in another way that I don't know.

Guenael commented 2 years ago

-- Sorry for the (extra-long) delay, I just recover my access to GitHub, and I was off radio activites --

@dforsi Good catch, the default value is not parsed, and logically not multiplied by 10. So this patch will fix the issue. Thanks for your report and your MR!