aboutsummaryrefslogtreecommitdiffstats
path: root/source/device.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-07-08 12:38:36 -0400
committerClyne Sullivan <clyne@bitgloo.com>2023-07-08 12:38:36 -0400
commit5e83a22455bb7a09b8b2fe04cc86112311df1be5 (patch)
tree53839951fb9796c3bbc1388334e5c2d7135c0ec4 /source/device.cpp
parentd13d5aec56a40c5fc86a79e16e86e8ffb2dcd7fe (diff)
basic fft visualization
Diffstat (limited to 'source/device.cpp')
-rw-r--r--source/device.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/device.cpp b/source/device.cpp
index 9c50a0d..d959c30 100644
--- a/source/device.cpp
+++ b/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.");