diff options
author | clyne <clyne@bitgloo.com> | 2021-04-11 15:37:33 -0400 |
---|---|---|
committer | clyne <clyne@bitgloo.com> | 2021-04-11 15:37:33 -0400 |
commit | ae14f05fe36741f44d87de33d3ffcb0829182534 (patch) | |
tree | 1418ad92d0ab34090f2dc114d96a042651c0ac0b /gui/stmdsp.cpp | |
parent | cf20e4acebcaecf9e91d55123553589ea0689b4e (diff) |
semi-WIP Windows port
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') |