diff --git a/src/timer.cpp b/src/timer.cpp index 2c60202..69fa699 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -87,6 +87,8 @@ void sc::timer::start() { void sc::timer::start(double time, bool repeat) { if (!is_armed()) { + _time = time; + _repeat = repeat; setup_timer(time, repeat); } }