Skip to content

Commit

Permalink
Fix hardcoded value
Browse files Browse the repository at this point in the history
  • Loading branch information
WillB97 committed Apr 19, 2024
1 parent f8114ed commit 59d80ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/servo.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static void calculate_phase_steps(uint8_t phase) {
sorted_servo_steps[step].rising = true;
if (step == (SERVOS_PER_PHASE - 1)) {
// this gap is the remaining delay before the first falling edge
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));
} else {
sorted_servo_steps[step].next_steps = TICKS_BETWEEN_EDGES;
}
Expand Down

0 comments on commit 59d80ab

Please sign in to comment.