mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-21 06:13:41 +00:00
Set full span behavior in preferences
This commit is contained in:
parent
6552100775
commit
1fcf25d060
5 changed files with 120 additions and 10 deletions
|
|
@ -627,8 +627,14 @@ void SpectrumAnalyzer::SetSpan(double span)
|
|||
|
||||
void SpectrumAnalyzer::SetFullSpan()
|
||||
{
|
||||
settings.freqStart = VirtualDevice::getInfo(window->getDevice()).Limits.minFreq;
|
||||
settings.freqStop = VirtualDevice::getInfo(window->getDevice()).Limits.maxFreq;
|
||||
auto &pref = Preferences::getInstance();
|
||||
if(pref.Acquisition.fullSpanManual) {
|
||||
settings.freqStart = pref.Acquisition.fullSpanStart;
|
||||
settings.freqStop = pref.Acquisition.fullSpanStop;
|
||||
} else {
|
||||
settings.freqStart = VirtualDevice::getInfo(window->getDevice()).Limits.minFreq;
|
||||
settings.freqStop = VirtualDevice::getInfo(window->getDevice()).Limits.maxFreq;
|
||||
}
|
||||
ConstrainAndUpdateFrequencies();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue