From 2b3c77bf031e8ccf2286389829b902d42ddd0916 Mon Sep 17 00:00:00 2001 From: Andrey Klimov Date: Sun, 9 Jan 2022 11:22:32 +0300 Subject: [PATCH] PID regulator alarm fix --- lighthub/modules/out_pid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lighthub/modules/out_pid.cpp b/lighthub/modules/out_pid.cpp index b4da0c7..5228ed8 100644 --- a/lighthub/modules/out_pid.cpp +++ b/lighthub/modules/out_pid.cpp @@ -285,7 +285,8 @@ store->alarmTimer=millis(); if (store->alarmArmed) { store->alarmArmed=false; - alarm(false); + alarm(false); + store->prevOut=-2.0; } return 1; //break;