mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
ports/stm32: Fix typo in stm32_pwm.
This commit is contained in:
parent
51e6d4f5c8
commit
0390360a92
@ -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 ||
|
if (HAL_TIM_PWM_Init(tim) != HAL_OK ||
|
||||||
HAL_TIM_PWM_ConfigChannel(tim, &TIMOCHandle, channel) != 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;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user