Fixed bug that sets auto-gain to manual mode.
This commit is contained in:
parent
09f6bed7c0
commit
effca83150
|
@ -198,7 +198,7 @@ bool rtlsdrOpen(void) {
|
||||||
// Set gain, frequency, sample rate, and reset the device
|
// Set gain, frequency, sample rate, and reset the device
|
||||||
if (Modes.gain == MODES_AUTO_GAIN) {
|
if (Modes.gain == MODES_AUTO_GAIN) {
|
||||||
fprintf(stderr, "rtlsdr: enabling tuner AGC\n");
|
fprintf(stderr, "rtlsdr: enabling tuner AGC\n");
|
||||||
rtlsdr_set_tuner_gain_mode(RTLSDR.dev, 1);
|
rtlsdr_set_tuner_gain_mode(RTLSDR.dev, 0);
|
||||||
} else {
|
} else {
|
||||||
int *gains;
|
int *gains;
|
||||||
int numgains;
|
int numgains;
|
||||||
|
|
Loading…
Reference in a new issue