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;
}
template <typename... Ts>
Uart &operator<<(char) const
Uart &operator<<(const char &val)
{
static_assert(util::always_false_v<Ts...>, "Not implemented");
txByte(val);
return *this;
}
template <typename... Ts>
Uart &operator<<(unsigned char) const
Uart &operator<<(const unsigned char &val)
{
static_assert(util::always_false_v<Ts...>, "Not implemented");
txNumber(val);
return *this;
}
template <typename... Ts>
Uart &operator<<(short) const
Uart &operator<<(const short &val)
{
static_assert(util::always_false_v<Ts...>, "Not implemented");
txNumber(val);
return *this;
}
template <typename... Ts>