mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
Merge pull request #2774 from openmv/fix_stm_pwm
ports/stm32: Fix typo in stm32_pwm.
This commit is contained in:
commit
55834dddd4
@ -82,7 +82,7 @@ int stm_pwm_start(TIM_HandleTypeDef *tim, TIM_TypeDef *inst, uint32_t channel, u
|
||||
|
||||
if (HAL_TIM_PWM_Init(tim) != HAL_OK ||
|
||||
HAL_TIM_PWM_ConfigChannel(tim, &TIMOCHandle, channel) != HAL_OK ||
|
||||
HAL_TIM_PWM_Start(tim, channel != HAL_OK)) {
|
||||
HAL_TIM_PWM_Start(tim, channel) != HAL_OK) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user