From 19f6991a83d11f41798c9c253f2cb834993305f1 Mon Sep 17 00:00:00 2001 From: Christos Houtouridis Date: Sat, 12 Jan 2019 22:34:26 +0200 Subject: [PATCH] Remove default constructor from i2c also --- include/utl/com/i2c_bb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/utl/com/i2c_bb.h b/include/utl/com/i2c_bb.h index 4a58910..a832c25 100644 --- a/include/utl/com/i2c_bb.h +++ b/include/utl/com/i2c_bb.h @@ -65,7 +65,7 @@ namespace utl { //! \brief A default destructor, allow destructor from derived only ~i2c_bb_i () noexcept = default; //! \brief A default constructor - i2c_bb_i (uint32_t clk =100000) noexcept + i2c_bb_i (uint32_t clk) noexcept : usec_ {1000000/(2*clk)} { } //!@} @@ -247,7 +247,7 @@ namespace utl { //!@{ protected: //! \brief Constructor - i2c_bb_i (uint32_t clk =100000) noexcept + i2c_bb_i (uint32_t clk) noexcept : usec_ {1000000/(2*clk)} { } //! \brief Virtual destructor virtual ~i2c_bb_i () noexcept = default;