diff --git a/Core/Src/main.c b/Core/Src/main.c index 2dbe8db..f48b1fe 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -210,7 +210,7 @@ int main(void) { update_status_leds(); afe_measure(); tmp144_read_temps(); - if (HAL_GetTick() - main_loop_start < ERROR_CHECK_START) { + if (HAL_GetTick() - main_loop_start > ERROR_CHECK_START) { check_error_conditions(); } fan_ctrl_update();