From f41cfe8196909c6ace58a9dc7e5a7b4cb24c23ba Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 23 Sep 2023 11:44:50 -0400 Subject: add frequency plot --- gui/source/device.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/source/device.cpp') diff --git a/gui/source/device.cpp b/gui/source/device.cpp index 9c50a0d..d959c30 100644 --- a/gui/source/device.cpp +++ b/gui/source/device.cpp @@ -316,7 +316,7 @@ bool deviceConnect() return false; } -void deviceStart(bool logResults, bool drawSamples) +void deviceStart(bool fetchSamples) { if (!m_device) { log("No device connected."); @@ -336,7 +336,7 @@ void deviceStart(bool logResults, bool drawSamples) log("Ready."); } else { m_device->continuous_start(); - if (drawSamples || logResults || wavOutput.valid()) + if (fetchSamples || wavOutput.valid()) std::thread(drawSamplesTask, m_device).detach(); log("Running."); -- cgit v1.2.3