We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 379bda2 + e10a233 commit 3400ef6Copy full SHA for 3400ef6
targets/TARGET_STM/pwmout_api.c
@@ -276,7 +276,9 @@ void pwmout_write(pwmout_t *obj, float value)
276
} else {
277
// If channel already enabled, only update compare value to avoid glitch
278
__HAL_TIM_SET_COMPARE(&TimHandle, channel, sConfig.Pulse);
279
+ return;
280
}
281
+
282
#if !defined(PWMOUT_INVERTED_NOT_SUPPORTED)
283
if (obj->inverted) {
284
HAL_TIMEx_PWMN_Start(&TimHandle, channel);
0 commit comments