aboutsummaryrefslogtreecommitdiffstats
path: root/gui/source/device.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-09-23 11:44:50 -0400
committerClyne Sullivan <clyne@bitgloo.com>2023-09-23 11:44:50 -0400
commitf41cfe8196909c6ace58a9dc7e5a7b4cb24c23ba (patch)
tree959b82ca52c5a9a049681b5c8bd11986b853a9db /gui/source/device.cpp
parent54e1e399ee8079a8b9d9f9093dd8330e27ccbdc9 (diff)
add frequency plot
Diffstat (limited to 'gui/source/device.cpp')
-rw-r--r--gui/source/device.cpp4
1 files changed, 2 insertions, 2 deletions
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.");