aboutsummaryrefslogtreecommitdiff
path: root/confui/serial.h
diff options
context:
space:
mode:
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();