aboutsummaryrefslogtreecommitdiffstats
path: root/source/stmdsp/stmdsp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/stmdsp/stmdsp.cpp')
-rw-r--r--source/stmdsp/stmdsp.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/stmdsp/stmdsp.cpp b/source/stmdsp/stmdsp.cpp
index 93c52dd..d219d38 100644
--- a/source/stmdsp/stmdsp.cpp
+++ b/source/stmdsp/stmdsp.cpp
@@ -27,7 +27,7 @@ namespace stmdsp
}
device::device(const std::string& file) :
- m_serial(file, 8'000'000/*230400*/, serial::Timeout::simpleTimeout(50))
+ m_serial(file, 8'000'000, serial::Timeout::simpleTimeout(50))
{
if (m_serial.isOpen()) {
m_serial.flush();
@@ -178,6 +178,9 @@ namespace stmdsp
m_serial.write(request, 3);
m_serial.write((uint8_t *)buffer, size * sizeof(dacsample_t));
+ // TODO
+ if (!m_is_running)
+ m_serial.write((uint8_t *)buffer, size * sizeof(dacsample_t));
}
}