Skip to content

Commit

Permalink
De-initalize timestamp if robot halts
Browse files Browse the repository at this point in the history
  • Loading branch information
JWillegers committed Dec 21, 2023
1 parent 442f76a commit a94b8b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/Src/robot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a94b8b3

Please sign in to comment.