From 1ae1af46d8c2c8526e4ffd0eb575b957c8376bd0 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 12 Jul 2020 15:00:44 -0400 Subject: [PATCH] Stefan, I want to drink from the same fountain of patience --- firmware/util/math/pid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/util/math/pid.cpp b/firmware/util/math/pid.cpp index 45cc4a391e..423c068f6e 100644 --- a/firmware/util/math/pid.cpp +++ b/firmware/util/math/pid.cpp @@ -286,8 +286,8 @@ float PidIndustrial::getOutput(float target, float input, float dTime) { } float PidIndustrial::limitOutput(float v) const { - if (v < parameters->minValue) - v = parameters->minValue; + if (v < getMinValue()) + v = getMinValue(); if (v > parameters->maxValue) v = parameters->maxValue; return v;