1
0
mirror of https://github.com/sjlongland/cluster-powerctl.git synced 2025-09-13 20:13:16 +10:00

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.
This commit is contained in:
Stuart Longland 2017-03-19 10:57:39 +10:00
parent 10cf0c710a
commit 0e58231224
Signed by: stuartl
GPG Key ID: F954BBBB7948D546

View File

@ -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