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 3057c6c commit dd2e93fCopy full SHA for dd2e93f
targets/TARGET_Silicon_Labs/TARGET_EFM32/pwmout_api.c
@@ -302,7 +302,7 @@ void pwmout_period(pwmout_t *obj, float seconds)
302
}
303
304
//Check if anything changed
305
- if(((PWM_TIMER->CTRL & ~_TIMER_CTRL_PRESC_MASK) == (pwm_prescaler_div << _TIMER_CTRL_PRESC_SHIFT)) && (TIMER_TopGet(PWM_TIMER) == cycles)) return;
+ if(((PWM_TIMER->CTRL & _TIMER_CTRL_PRESC_MASK) == (pwm_prescaler_div << _TIMER_CTRL_PRESC_SHIFT)) && (TIMER_TopGet(PWM_TIMER) == cycles)) return;
306
307
//Save previous period for recalculation of duty cycles
308
uint32_t previous_period_cycles = PWM_TIMER->TOPB;
0 commit comments