From 8d770daca8fd628984a3a3c1c0a8ddb4ea3db8fe Mon Sep 17 00:00:00 2001 From: rusefillc Date: Fri, 9 Sep 2022 19:21:29 -0400 Subject: [PATCH] "Blip" with trigger error on several boards #4552 exploratory watchdog --- firmware/controllers/algo/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/algo/engine.cpp b/firmware/controllers/algo/engine.cpp index 62d6ed3ff5..5f1b75f8bc 100644 --- a/firmware/controllers/algo/engine.cpp +++ b/firmware/controllers/algo/engine.cpp @@ -457,7 +457,7 @@ void Engine::efiWatchdog() { float secondsNow = currentTimeMillis(); if (mostRecentSecond != 0) { float gapInSeconds = secondsNow - mostRecentSecond; - if (gapInSeconds > 0.5) { + if (gapInSeconds > 500) { // float has 24 bits in the mantissa, which should allow up to 8 significant figures // we loose precision here after about 1,000,000 seconds which is 11 days firmwareError(WATCH_DOG_SECONDS, "gap in seconds %f %f", secondsNow, gapInSeconds);