From 0390360a925e77ccdaf7c60113b3b8c9136984eb Mon Sep 17 00:00:00 2001 From: "Kwabena W. Agyeman" Date: Sun, 20 Jul 2025 21:03:22 -0700 Subject: [PATCH] ports/stm32: Fix typo in stm32_pwm. --- ports/stm32/stm_pwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/stm_pwm.c b/ports/stm32/stm_pwm.c index f884cdad9..1a2fb77a7 100644 --- a/ports/stm32/stm_pwm.c +++ b/ports/stm32/stm_pwm.c @@ -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; } }