From 8ac4bc40daa5e4fa47552c4d2884068510e3df37 Mon Sep 17 00:00:00 2001 From: rusefi Date: Tue, 12 Nov 2019 19:58:14 -0500 Subject: [PATCH] ops that's not what I mean --- firmware/hw_layer/microsecond_timer.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/firmware/hw_layer/microsecond_timer.cpp b/firmware/hw_layer/microsecond_timer.cpp index e5649378e7..f5e70acf4d 100644 --- a/firmware/hw_layer/microsecond_timer.cpp +++ b/firmware/hw_layer/microsecond_timer.cpp @@ -176,10 +176,6 @@ static efitimems_t testSchedulingStart; static void timerValidationCallback(void *arg) { (void)arg; - if (hasFirmwareError()) { - return; - } - testSchedulingHappened = true; efitimems_t actualTimeSinceScheduling = (currentTimeMillis() - testSchedulingStart); @@ -193,6 +189,9 @@ static void timerValidationCallback(void *arg) { * helps to make sure our GPT hardware settings are somewhat right */ static void validateHardwareTimer() { + if (hasFirmwareError()) { + return; + } testSchedulingStart = currentTimeMillis(); // to save RAM let's use 'watchDogBuddy' here once before we enable watchdog