diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-01 09:22:37 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-03-01 09:22:37 +0100 |
commit | 249323fc5fa14dbc4c1a6316873cfc07f468f43b (patch) | |
tree | bd53ea18ab364e5f19993d0f7ef07a39ce10f60f /src/serial.hpp | |
parent | 61f11389ea6296fb0c28dd7aa4d0bfa6feb919f3 (diff) |
refactor: fix serial stream & unique ptr
Diffstat (limited to 'src/serial.hpp')
-rw-r--r-- | src/serial.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serial.hpp b/src/serial.hpp index 9a9488d..f32ca63 100644 --- a/src/serial.hpp +++ b/src/serial.hpp @@ -7,7 +7,7 @@ class SerialStream { public: - SerialStream(Serial_ serial, uint64_t baud_rate); + SerialStream(Serial_ serial, const unsigned long &baud_rate); SerialStream &operator<<(const char *str); SerialStream &operator<<(const SmartString &str); @@ -18,6 +18,8 @@ public: SerialStream &operator<<(void (*manipulator)(SerialStream *)); + void waitReady(); + void write(const char *str); void flush(); |