From 496bb3d4d1e7e166fd64503000caf5498fc59c54 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Fri, 2 Aug 2019 16:41:34 +0200 Subject: [PATCH] Removed force inlining functions that would be called often --- uart.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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;