Skip to content

Commit

Permalink
Merge pull request #101 from RoboTeamTwente/fix/timestamp_not_at_corr…
Browse files Browse the repository at this point in the history
…ect_frequency

Fix/timestamp not at correct frequency
  • Loading branch information
DarioC02 committed Jan 24, 2024
2 parents 27a9d90 + a94b8b3 commit c7e045f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Core/Inc/roboteam_embedded_messages
5 changes: 3 additions & 2 deletions 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 Expand Up @@ -941,6 +942,7 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) {
}

flag_sdcard_write_feedback = true;
unix_timestamp += 1;

}
else if (htim->Instance == TIM_BUZZER->Instance) {
Expand All @@ -953,5 +955,4 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) {
shoot_Callback();
}

unix_timestamp += 1 ;
}

0 comments on commit c7e045f

Please sign in to comment.