hysteresis for GPPWM #3222

This commit is contained in:
rusefillc 2021-09-05 20:18:14 -04:00
parent 58c2bf8930
commit 36792f55b5
1 changed files with 1 additions and 1 deletions

View File

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