diff --git a/uart.hpp b/uart.hpp index 94ec3cd..5056259 100644 --- a/uart.hpp +++ b/uart.hpp @@ -147,22 +147,22 @@ class Uart { return *this; } - template - Uart &operator<<(char) const + Uart &operator<<(const char &val) { - static_assert(util::always_false_v, "Not implemented"); + txByte(val); + return *this; } - template - Uart &operator<<(unsigned char) const + Uart &operator<<(const unsigned char &val) { - static_assert(util::always_false_v, "Not implemented"); + txNumber(val); + return *this; } - template - Uart &operator<<(short) const + Uart &operator<<(const short &val) { - static_assert(util::always_false_v, "Not implemented"); + txNumber(val); + return *this; } template