diff --git a/include/sta/rtos/timer.hpp b/include/sta/rtos/timer.hpp index 7507c3a..d54cfeb 100644 --- a/include/sta/rtos/timer.hpp +++ b/include/sta/rtos/timer.hpp @@ -60,7 +60,7 @@ namespace sta /** * @returns True of the timmer is currently running. */ - bool isRunning(); + bool isRunning() override; private: static void timeoutHandler(void* arg); diff --git a/src/timer.cpp b/src/timer.cpp index 79c6361..7c76b24 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -62,8 +62,8 @@ namespace sta { bool RtosTimer::isRunning() { - return running_; - } + return osTimerIsRunning(timer_id_); + } void RtosTimer::timeoutHandler(void* arg) {