From a94b8b313c6d7ac4c7c3f9d71f4038573661370f Mon Sep 17 00:00:00 2001 From: Jonathan <148167.jw@gmail.com> Date: Thu, 21 Dec 2023 15:27:11 +0100 Subject: [PATCH] De-initalize timestamp if robot halts --- Core/Src/robot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/Src/robot.c b/Core/Src/robot.c index 879d452..6984b92 100644 --- a/Core/Src/robot.c +++ b/Core/Src/robot.c @@ -869,7 +869,8 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { return; } - if( halt && !test_isTestRunning(square)){ + if(halt && !test_isTestRunning(square)) { + unix_initalized = false; wheels_Stop(); return; }