diff --git a/Firmware/Timer.cpp b/Firmware/Timer.cpp index d0a552b0a..b3ee423b2 100644 --- a/Firmware/Timer.cpp +++ b/Firmware/Timer.cpp @@ -6,17 +6,6 @@ #include "Timer.h" #include "system_timer.h" -/** - * @brief construct Timer - * - * It is guaranteed, that construction is equivalent with zeroing all members. - * This property can be exploited in menu_data. - */ -template -Timer::Timer() : m_isRunning(false), m_started() -{ -} - /** * @brief Start timer */ diff --git a/Firmware/Timer.h b/Firmware/Timer.h index 9cb18a304..9880764d6 100644 --- a/Firmware/Timer.h +++ b/Firmware/Timer.h @@ -17,7 +17,10 @@ template class Timer { public: - Timer(); + inline constexpr Timer() + : m_isRunning(false) + , m_started(0) {}; + void start(); void stop(){m_isRunning = false;} bool running()const {return m_isRunning;}