aboutsummaryrefslogtreecommitdiffstats
path: root/gui/stmdsp.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2021-02-01 19:03:24 -0500
committerClyne Sullivan <clyne@bitgloo.com>2021-02-01 19:03:24 -0500
commit22a0cd0c82e4c63a8e1a6546218d1ab58f3b6221 (patch)
tree0e2f05f723242f0e9870bd1f95a6c22802c60580 /gui/stmdsp.cpp
parent4f59610a00da78639c1909acb09c7dfde4519a28 (diff)
clean up gui states
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) {