Implemented stream operator for some basic types

This commit is contained in:
BlackMark 2019-08-03 16:17:07 +02:00
parent 9f7dc0da55
commit fe9e67036e

View File

@ -147,22 +147,22 @@ class Uart {
return *this; return *this;
} }
template <typename... Ts> Uart &operator<<(const char &val)
Uart &operator<<(char) const
{ {
static_assert(util::always_false_v<Ts...>, "Not implemented"); txByte(val);
return *this;
} }
template <typename... Ts> Uart &operator<<(const unsigned char &val)
Uart &operator<<(unsigned char) const
{ {
static_assert(util::always_false_v<Ts...>, "Not implemented"); txNumber(val);
return *this;
} }
template <typename... Ts> Uart &operator<<(const short &val)
Uart &operator<<(short) const
{ {
static_assert(util::always_false_v<Ts...>, "Not implemented"); txNumber(val);
return *this;
} }
template <typename... Ts> template <typename... Ts>