summaryrefslogtreecommitdiff
path: root/src/serial.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/serial.cpp')
-rw-r--r--src/serial.cpp12
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;
}