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