From 249323fc5fa14dbc4c1a6316873cfc07f468f43b Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 1 Mar 2022 09:22:37 +0100 Subject: refactor: fix serial stream & unique ptr --- src/serial.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/serial.hpp') 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(); -- cgit v1.2.3-18-g5258