diff --git a/static_scheduling_with_event/bike_system.cpp b/static_scheduling_with_event/bike_system.cpp index c9eb1e3..0ea2f49 100644 --- a/static_scheduling_with_event/bike_system.cpp +++ b/static_scheduling_with_event/bike_system.cpp @@ -208,6 +208,8 @@ void BikeSystem::resetTask() { std::chrono::microseconds responseTime = _timer.elapsed_time() - _resetTime; tr_info("Reset task: response time is %" PRIu64 " usecs", responseTime.count()); _speedometer.reset(); + + core_util_atomic_store_bool(&_resetFlag, false); } _taskLogger.logPeriodAndExecutionTime(