From 0e58231224843ff1260db39b2e3ec1aa9a9e0e3e Mon Sep 17 00:00:00 2001 From: Stuart Longland Date: Sun, 19 Mar 2017 10:57:39 +1000 Subject: [PATCH] setpoints: Add warning timeout. If the charge isn't rising, we should wait before acting on it in case it is temporary in nature. It was hoped that the charger delay should be enough, but it seems it still can flap. We reset the warning if we see an improvement, or let the timer expire if we don't. --- setpoints.h.dist | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setpoints.h.dist b/setpoints.h.dist index ba44e8f..f628997 100644 --- a/setpoints.h.dist +++ b/setpoints.h.dist @@ -94,4 +94,9 @@ */ #define T_LF_S (15) +/*! + * How long before we consider a lack of voltage increase a warning? + */ +#define T_CWARN_S (10) + #endif