Update low_level.c

This commit is contained in:
Oskar Weigl
2018-01-16 19:36:05 -08:00
committed by GitHub
parent 5ba7d0887c
commit e7398e23c5
+1 -1
View File
@@ -418,7 +418,7 @@ void start_adc_pwm() {
start_pwm(&htim1);
start_pwm(&htim8);
// TODO: explain why this offset
sync_timers(&htim1, &htim8, TIM_CLOCKSOURCE_ITR0, TIM_1_8_PERIOD_CLOCKS / 2 - 0 * 128);
sync_timers(&htim1, &htim8, TIM_CLOCKSOURCE_ITR0, TIM_1_8_PERIOD_CLOCKS / 2 - 1 * 128);
// Motor output starts in the disabled state
__HAL_TIM_MOE_DISABLE_UNCONDITIONALLY(&htim1);