Update Kraken.cpp

disable auto gain
This commit is contained in:
sdn-ninja 2024-06-13 00:09:14 +01:00 committed by GitHub
parent d3f1ca6041
commit e497090bfe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,7 @@ void Kraken::start()
check_status(status, "Failed to set sample rate."); check_status(status, "Failed to set sample rate.");
status = rtlsdr_set_dithering(devs[i], 0); // disable dither status = rtlsdr_set_dithering(devs[i], 0); // disable dither
check_status(status, "Failed to disable dithering."); check_status(status, "Failed to disable dithering.");
status = rtlsdr_set_tuner_gain_mode(devs[i], 0); // enable AGC status = rtlsdr_set_tuner_gain_mode(devs[i], 1); // disable AGC
check_status(status, "Failed to disable AGC."); check_status(status, "Failed to disable AGC.");
status = rtlsdr_set_tuner_gain(devs[i], gain[i]); status = rtlsdr_set_tuner_gain(devs[i], gain[i]);
check_status(status, "Failed to set gain."); check_status(status, "Failed to set gain.");