V1.6
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user