fixed includes

This commit is contained in:
Hamza
2024-05-27 13:46:49 +02:00
parent fc24a34740
commit 07f11db3f0
4 changed files with 11 additions and 7 deletions

View File

@ -25,7 +25,7 @@ void PWM_control_init(TIM_HandleTypeDef powerground1, TIM_HandleTypeDef powergro
controls the duty cycle of the fans by setting the CCR of the channel percent/100 = x/ARR
*/
void PWM_powerground_control(uint8_t percent){
if (percent > 100 || percent < 0)
if (percent > 100) //something went wrong
return;
powerground_status = percent/100;