aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/stm32/drv_pwm_servo.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/drivers/stm32/drv_pwm_servo.c b/src/drivers/stm32/drv_pwm_servo.c
index c85e83ddc..dbb45a138 100644
--- a/src/drivers/stm32/drv_pwm_servo.c
+++ b/src/drivers/stm32/drv_pwm_servo.c
@@ -169,9 +169,6 @@ pwm_channel_init(unsigned channel)
rCCER(timer) |= GTIM_CCER_CC4E;
break;
}
-
- /* generate an update event; reloads the counter and all registers */
- rEGR(timer) = GTIM_EGR_UG;
}
int
@@ -212,9 +209,6 @@ up_pwm_servo_set(unsigned channel, servo_position_t value)
return -1;
}
- /* generate an update event; reloads the counter and all registers */
- rEGR(timer) = GTIM_EGR_UG;
-
return 0;
}