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.
1 parent ffeb926 commit e10a233Copy full SHA for e10a233
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