Merge pull request #2774 from openmv/fix_stm_pwm

ports/stm32: Fix typo in stm32_pwm.
This commit is contained in:
Ibrahim Abdelkader 2025-07-21 10:38:19 +03:00 committed by GitHub
commit 55834dddd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}