Skip to content

Commit 59d80ab

Browse files
committed
Fix hardcoded value
1 parent f8114ed commit 59d80ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/servo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static void calculate_phase_steps(uint8_t phase) {
185185
sorted_servo_steps[step].rising = true;
186186
if (step == (SERVOS_PER_PHASE - 1)) {
187187
// this gap is the remaining delay before the first falling edge
188-
sorted_servo_steps[step].next_steps = sorted_servo_states[0].pulse - (TICKS_BETWEEN_EDGES * 3);
188+
sorted_servo_steps[step].next_steps = sorted_servo_states[0].pulse - (TICKS_BETWEEN_EDGES * (SERVOS_PER_PHASE - 1));
189189
} else {
190190
sorted_servo_steps[step].next_steps = TICKS_BETWEEN_EDGES;
191191
}

0 commit comments

Comments
 (0)