This commit is contained in:
hamza
2024-07-08 14:44:01 +03:00
parent 39f124efc6
commit 17e8cee0ac
7 changed files with 36 additions and 20 deletions

View File

@ -51,6 +51,7 @@ void PWM_powerground_control(uint8_t percent){
if (percent > 100){ //something went wrong
__HAL_TIM_SET_COMPARE(powerground, TIM_CHANNEL_3, 0);
__HAL_TIM_SET_COMPARE(powerground, TIM_CHANNEL_4, 0);
powerground_status = 0;
return;
}
powerground_status = percent;