diff options
Diffstat (limited to 'gui/stmdsp.cpp')
-rw-r--r-- | gui/stmdsp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/stmdsp.cpp b/gui/stmdsp.cpp index 2293c71..7a55562 100644 --- a/gui/stmdsp.cpp +++ b/gui/stmdsp.cpp @@ -30,6 +30,7 @@ namespace stmdsp m_serial(file, 1000000/*230400*/, serial::Timeout::simpleTimeout(50)) { if (m_serial.isOpen()) { + m_serial.flush(); m_serial.write("i"); if (auto id = m_serial.read(7); id.starts_with("stmdsp")) { if (id.back() == 'h') |