aboutsummaryrefslogtreecommitdiffstats
path: root/gui/stmdsp.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2020-10-20 20:14:08 -0400
committerClyne Sullivan <clyne@bitgloo.com>2020-10-20 20:14:08 -0400
commitee274be303987c28fd26e88411378557f1ff566b (patch)
tree082be80436ac4402d1b2fa30a53a46230c3cb179 /gui/stmdsp.cpp
parent30cd119dba0e2caf48b6bf5016f60dcede62f511 (diff)
firmware can port to L432KC; gui: edit buffer size
Diffstat (limited to 'gui/stmdsp.cpp')
-rw-r--r--gui/stmdsp.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/stmdsp.cpp b/gui/stmdsp.cpp
index 87b608d..633c61a 100644
--- a/gui/stmdsp.cpp
+++ b/gui/stmdsp.cpp
@@ -41,6 +41,17 @@ namespace stmdsp
}
}*/
+ void device::continuous_set_buffer_size(unsigned int size) {
+ if (connected()) {
+ uint8_t request[3] = {
+ 'B',
+ static_cast<uint8_t>(size),
+ static_cast<uint8_t>(size >> 8)
+ };
+ m_serial.write(request, 3);
+ }
+ }
+
void device::continuous_start() {
if (connected())
m_serial.write("R");