Renamed choosing function
This commit is contained in:
parent
2364bff11f
commit
ae90fdae3f
@ -32,12 +32,12 @@ enum class Parity {
|
||||
namespace detail {
|
||||
|
||||
template <const DataBits dataBits>
|
||||
struct choose_data_size {
|
||||
struct choose_data_type {
|
||||
using type = uint8_t;
|
||||
};
|
||||
|
||||
template <>
|
||||
struct choose_data_size<DataBits::NINE> {
|
||||
struct choose_data_type<DataBits::NINE> {
|
||||
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<DATA_BITS>::type;
|
||||
using data_t = typename detail::choose_data_type<DATA_BITS>::type;
|
||||
};
|
||||
|
||||
} // namespace uart
|
||||
|
Loading…
Reference in New Issue
Block a user