ports/stm32: Fix typo in stm32_pwm.

This commit is contained in:
Kwabena W. Agyeman 2025-07-20 21:03:22 -07:00 committed by iabdalkader
parent 51e6d4f5c8
commit 0390360a92

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