From ae90fdae3fe0311fa6f0ce7686a2de7c3bc4afa7 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Sun, 28 Jul 2019 10:54:47 +0200 Subject: [PATCH] Renamed choosing function --- settings.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/settings.hpp b/settings.hpp index a6575fb..33878f4 100644 --- a/settings.hpp +++ b/settings.hpp @@ -32,12 +32,12 @@ enum class Parity { namespace detail { template -struct choose_data_size { +struct choose_data_type { using type = uint8_t; }; template <> -struct choose_data_size { +struct choose_data_type { using type = uint16_t; }; @@ -51,7 +51,7 @@ class settings { static constexpr auto DATA_BITS = dataBits; static constexpr auto PARITY = parity; static constexpr auto STOP_BITS = stopBits; - using data_t = typename detail::choose_data_size::type; + using data_t = typename detail::choose_data_type::type; }; } // namespace uart