aboutsummaryrefslogtreecommitdiff
path: root/confui/serial.h
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-11 16:46:57 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-11 16:46:57 +0100
commit28cd1a0d195637f8f55faf711a66a3e0249843dc (patch)
tree43d5f1597b5a0a23d9703ffc3b4feb1e30de44fe /confui/serial.h
parentae3970ad5e1b3495726b70d5653c2424fccfba07 (diff)
more serial worky
Diffstat (limited to 'confui/serial.h')
-rw-r--r--confui/serial.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/confui/serial.h b/confui/serial.h
index 9645227..22f2542 100644
--- a/confui/serial.h
+++ b/confui/serial.h
@@ -17,7 +17,7 @@ public:
static vector<string> get_ports();
/** @brief open serial port */
- virtual void connect();
+ virtual void connect(string port);
/** @brief close serial port */
virtual void disconnect();
@@ -26,6 +26,9 @@ public:
/** @brief get last message */
virtual QByteArray get_data();
+ /** @brief get current port name */
+ virtual string get_port();
+
private:
/** @brief executed when new data is received */
virtual void action();