mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 22:17:31 +00:00
do not set operation pending if no device connected
This commit is contained in:
parent
626d4110e2
commit
73ba0f9692
2 changed files with 12 additions and 4 deletions
|
|
@ -564,7 +564,9 @@ void SpectrumAnalyzer::NewDatapoint(DeviceDriver::SAMeasurement m)
|
|||
|
||||
void SpectrumAnalyzer::SettingsChanged()
|
||||
{
|
||||
setOperationPending(true);
|
||||
if(window->getDevice()) {
|
||||
setOperationPending(true);
|
||||
}
|
||||
configurationTimer.start(100);
|
||||
ResetLiveTraces();
|
||||
}
|
||||
|
|
@ -893,7 +895,9 @@ void SpectrumAnalyzer::ConfigureDevice()
|
|||
|
||||
void SpectrumAnalyzer::ResetLiveTraces()
|
||||
{
|
||||
setOperationPending(true);
|
||||
if(window->getDevice()) {
|
||||
setOperationPending(true);
|
||||
}
|
||||
average.reset(DeviceDriver::SApoints());
|
||||
traceModel.clearLiveData();
|
||||
UpdateAverageCount();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue