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;
|
||||
}
|
||||
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user