Implemented stream operator for some basic types
This commit is contained in:
parent
9f7dc0da55
commit
fe9e67036e
18
uart.hpp
18
uart.hpp
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user