From 8d04ac9c19a825ac7d4919dd061ba08338145219 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 31 Oct 2023 11:40:00 -0600 Subject: restored original smooth-steps-downward timing; it was just a little bit imbalanced after recent changes --- spaghetti-monster/anduril/smooth-steps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spaghetti-monster') diff --git a/spaghetti-monster/anduril/smooth-steps.c b/spaghetti-monster/anduril/smooth-steps.c index d896251..d907bc1 100644 --- a/spaghetti-monster/anduril/smooth-steps.c +++ b/spaghetti-monster/anduril/smooth-steps.c @@ -28,7 +28,7 @@ void smooth_steps_iter() { // ramp-linear descent // (jump by 1 on each frame, frame rate gives constant total time) uint8_t diff = smooth_steps_start - smooth_steps_target; - uint16_t delay = 1 + (24 * smooth_steps_speed / diff); + uint16_t delay = 1 + (26 * smooth_steps_speed / diff); set_level(actual_level - 1); // TODO? if delay < one PWM cycle, this can look a little weird nice_delay_ms(delay); -- cgit v1.2.3