[fix] proper function for start pwm timer
This commit is contained in:
@@ -157,9 +157,9 @@ void CTRL_longPushedChanBtnEvent(ButtonKey_t *key)
|
||||
|
||||
if (channel == CHANNEL2)
|
||||
{
|
||||
if (HAL_TIM_Base_Start(&htim17) == HAL_ERROR)
|
||||
if (HAL_TIM_PWM_Start(&htim17, TIM_CHANNEL_1) == HAL_ERROR)
|
||||
{
|
||||
HAL_TIM_Base_Stop(&htim17);
|
||||
HAL_TIM_PWM_Stop(&htim17, TIM_CHANNEL_1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user