Load limit duty cycle w/ lockout
authorJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 16 Feb 2018 04:50:59 +0000 (20:50 -0800)
committerJoseph Coffland <joseph@cauldrondevelopment.com>
Fri, 16 Feb 2018 04:50:59 +0000 (20:50 -0800)
src/pwr/main.c

index 27061ef3b8f4e43f987b1c5fc9181e1ba3c2dc06..e5256883b04b66b2cfd2aa659b26107ad7b7d7a7 100644 (file)
@@ -180,7 +180,7 @@ static void measure_nominal_voltage() {
 static void check_load(load_t *load) {
   bool overtemp = CURRENT_OVERTEMP * 100 < regs[load->reg];
   if (overtemp && !load->lockout) {
-    load->lockout = 42; // About 200 ms
+    load->lockout = 210; // About 1s
     if (load->limit < LOAD_LIMIT_TICKS) load->limit++;
   }