mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-05-02 08:38:30 -04:00
tabs->spaces
This commit is contained in:
parent
4ca6e8dba9
commit
2a75c2776e
@ -131,9 +131,9 @@ bool SDRThread::init() {
|
|||||||
hasHardwareDC.store(false);
|
hasHardwareDC.store(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (device->hasGainMode(SOAPY_SDR_RX, 0)) {
|
if (device->hasGainMode(SOAPY_SDR_RX, 0)) {
|
||||||
device->setGainMode(SOAPY_SDR_RX, 0, agc_mode.load());
|
device->setGainMode(SOAPY_SDR_RX, 0, agc_mode.load());
|
||||||
}
|
}
|
||||||
|
|
||||||
numChannels.store(getOptimalChannelCount(sampleRate.load()));
|
numChannels.store(getOptimalChannelCount(sampleRate.load()));
|
||||||
numElems.store(getOptimalElementCount(sampleRate.load(), TARGET_DISPLAY_FPS));
|
numElems.store(getOptimalElementCount(sampleRate.load(), TARGET_DISPLAY_FPS));
|
||||||
@ -486,9 +486,9 @@ void SDRThread::updateSettings() {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
if (agc_mode_changed.load()) {
|
if (agc_mode_changed.load()) {
|
||||||
if (device->hasGainMode(SOAPY_SDR_RX, 0)) {
|
if (device->hasGainMode(SOAPY_SDR_RX, 0)) {
|
||||||
device->setGainMode(SOAPY_SDR_RX, 0, agc_mode.load());
|
device->setGainMode(SOAPY_SDR_RX, 0, agc_mode.load());
|
||||||
}
|
}
|
||||||
agc_mode_changed.store(false);
|
agc_mode_changed.store(false);
|
||||||
if (!agc_mode.load()) {
|
if (!agc_mode.load()) {
|
||||||
updateGains();
|
updateGains();
|
||||||
|
Loading…
Reference in New Issue
Block a user