[fix] proper function for start pwm timer

This commit is contained in:
2023-08-12 19:23:37 +02:00
parent 843e74ded0
commit dd8c727f0b

View File

@@ -157,9 +157,9 @@ void CTRL_longPushedChanBtnEvent(ButtonKey_t *key)
if (channel == CHANNEL2) 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);
} }
} }