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 f8114ed commit 59d80abCopy full SHA for 59d80ab
src/servo.c
@@ -185,7 +185,7 @@ static void calculate_phase_steps(uint8_t phase) {
185
sorted_servo_steps[step].rising = true;
186
if (step == (SERVOS_PER_PHASE - 1)) {
187
// 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);
+ sorted_servo_steps[step].next_steps = sorted_servo_states[0].pulse - (TICKS_BETWEEN_EDGES * (SERVOS_PER_PHASE - 1));
189
} else {
190
sorted_servo_steps[step].next_steps = TICKS_BETWEEN_EDGES;
191
}
0 commit comments