aboutsummaryrefslogtreecommitdiffstats
path: root/gui/stmdsp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/stmdsp.cpp')
-rw-r--r--gui/stmdsp.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/stmdsp.cpp b/gui/stmdsp.cpp
index 897e643..1b4bba6 100644
--- a/gui/stmdsp.cpp
+++ b/gui/stmdsp.cpp
@@ -139,13 +139,17 @@ namespace stmdsp
}
void device::siggen_start() {
- if (connected())
+ if (connected()) {
+ m_is_siggening = true;
m_serial.write("W");
+ }
}
void device::siggen_stop() {
- if (connected())
+ if (connected()) {
+ m_is_siggening = false;
m_serial.write("w");
+ }
}
void device::upload_filter(unsigned char *buffer, size_t size) {