From 36792f55b5365d84f3cffa9e2f9e5cfb615fe729 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 5 Sep 2021 20:18:14 -0400 Subject: [PATCH] hysteresis for GPPWM #3222 --- firmware/controllers/actuators/gppwm/gppwm_channel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/controllers/actuators/gppwm/gppwm_channel.cpp b/firmware/controllers/actuators/gppwm/gppwm_channel.cpp index ce9b112f97..4386af4aa2 100644 --- a/firmware/controllers/actuators/gppwm/gppwm_channel.cpp +++ b/firmware/controllers/actuators/gppwm/gppwm_channel.cpp @@ -49,7 +49,7 @@ void GppwmChannel::setOutput(float result) { if (m_config->offBelowDuty > m_config->onAboveDuty) { firmwareError(CUSTOM_ERR_6122, "You can't have off below %f greater than on above %f", m_config->offBelowDuty, - m_config->onBelowDuty); + m_config->onAboveDuty); } // Apply hysteresis with provided values if (m_state && result < m_config->offBelowDuty) {