From a119e6ca70ffab14f0a70908fa3eeb83b41bb5ab Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 14 Mar 2022 10:24:36 +0100 Subject: refactor: rename std to common --- src/serial.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/serial.cpp') 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; } -- cgit v1.2.3-18-g5258