boards/arm/stm32/stm32f334-disco/src/stm32_smps.c: update according to the previous change in the PI controller

This commit is contained in:
raiden00pl 2021-02-28 22:27:12 +01:00 committed by Xiang Xiao
parent b34dd2d96a
commit 4ad8f85555

View File

@ -431,6 +431,10 @@ static int smps_start(FAR struct smps_dev_s *dev)
/* Set PID controller saturation */
pid_saturation_set(&priv->pid, 0.0, BOOST_VOLT_MAX);
/* Reset PI integral if saturated */
pi_ireset_enable(&priv->pid, true);
#endif
/* Get TIMA period value for given frequency */