diff --git a/uart.hpp b/uart.hpp index 3883855..2cb45c2 100644 --- a/uart.hpp +++ b/uart.hpp @@ -35,7 +35,7 @@ class Uart { Uart &operator=(const Uart &) = delete; Uart &operator=(Uart &&) = delete; - static void txByte(typename Driver::data_t byte) FORCE_INLINE + static void txByte(const typename Driver::data_t &byte) { Driver::txByte(byte); } @@ -50,7 +50,7 @@ class Uart { return Driver::peek(); } - static void txString(const char *str) FORCE_INLINE + static void txString(const char *str) { static_assert(Driver::DATA_BITS == DataBits::EIGHT, "Strings are only supported with 8 data bits"); @@ -58,7 +58,7 @@ class Uart { txByte(ch); } - static void txString(const ::detail::FlashString *str) FORCE_INLINE + static void txString(const ::detail::FlashString *str) { static_assert(Driver::DATA_BITS == DataBits::EIGHT, "Strings are only supported with 8 data bits"); @@ -71,13 +71,13 @@ class Uart { ////////////////////////////////////////////////////////////////////////// // Output stream overloads - Uart &operator<<(const char *str) FORCE_INLINE + Uart &operator<<(const char *str) { txString(str); return *this; } - Uart &operator<<(const ::detail::FlashString *str) FORCE_INLINE + Uart &operator<<(const ::detail::FlashString *str) { txString(str); return *this;