diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-14 10:24:36 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-03-14 10:24:36 +0100 |
commit | a119e6ca70ffab14f0a70908fa3eeb83b41bb5ab (patch) | |
tree | 51b72774694f5e1aac0bb17fc1a5e528dbad9b44 /src/serial.cpp | |
parent | 6b5754655f78a7f93b756ff902ce9fd80d9dc4ec (diff) |
refactor: rename std to common
Diffstat (limited to 'src/serial.cpp')
-rw-r--r-- | src/serial.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/serial.cpp b/src/serial.cpp index d3b3989..e60de6c 100644 --- a/src/serial.cpp +++ b/src/serial.cpp @@ -1,6 +1,6 @@ #include "serial.hpp" -#include "std/conversion.hpp" +#include "common/conversion.hpp" SerialStream::SerialStream(Serial_ serial, const unsigned long &baud_rate) : _serial(serial) @@ -14,7 +14,7 @@ SerialStream &SerialStream::operator<<(const char *str) return *this; } -SerialStream &SerialStream::operator<<(const SmartString &str) +SerialStream &SerialStream::operator<<(const common::String &str) { write(str.c_str); return *this; @@ -22,25 +22,25 @@ SerialStream &SerialStream::operator<<(const SmartString &str) SerialStream &SerialStream::operator<<(const double &num) { - write(doubleToStr(num, 3U, 4U)->c_str); + write(common::doubleToStr(num, 3U, 4U)->c_str); return *this; } SerialStream &SerialStream::operator<<(const int &num) { - write(intToStr(num)->c_str); + write(common::intToStr(num)->c_str); return *this; } SerialStream &SerialStream::operator<<(const unsigned int &num) { - write(uintToStr(num)->c_str); + write(common::uintToStr(num)->c_str); return *this; } SerialStream &SerialStream::operator<<(const unsigned long &num) { - write(uintToStr(num)->c_str); + write(common::uintToStr(num)->c_str); return *this; } |