[EGD-3685] Fix timers starting without callback Fixed null-callback timer in Vibra starting automatically on creation
2 files changed, 6 insertions(+), 2 deletions(-) M module-services/service-evtmgr/vibra/Vibra.cpp M module-services/service-evtmgr/vibra/Vibra.hpp
M module-services/service-evtmgr/vibra/Vibra.cpp => module-services/service-evtmgr/vibra/Vibra.cpp +5 -2
@@ 16,8 16,11 @@ namespace vibra_handle vibratorTimerPause = std::make_unique<sys::Timer>("VibraPauseTimer", parent, bsp::vibrator::defaultVibraPauseMs); vibratorTimerOneshot->setInterval(bsp::vibrator::defaultVibraPulseMs); vibratorTimerPause->setInterval(bsp::vibrator::defaultVibraPauseMs); vibratorTimerOneshot->connect(nullTimerCallback); vibratorTimerPause->connect(nullTimerCallback); vibratorTimerOneshot->stop(); vibratorTimerPause->stop(); } void Vibra::intPulse(bool repetitive)
M module-services/service-evtmgr/vibra/Vibra.hpp => module-services/service-evtmgr/vibra/Vibra.hpp +1 -0