From 20406664c39bd5597a4e24134decf263c2384a5e Mon Sep 17 00:00:00 2001 From: Klagarge Date: Mon, 18 Nov 2024 09:13:18 +0100 Subject: [PATCH] FIX reset task --- static_scheduling_with_event/bike_system.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(