mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-25 09:08:33 -07:00
trapq: Set the head sentinel to a negative print_time
If a stepper kinematics has a "scan window" defined during its first flush then the iterative solver may walk past the head sentinel. Set a small negative print_time for the head sentinel to avoid this corner case. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
32bd03703b
commit
b60804bb66
1 changed files with 1 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ trapq_alloc(void)
|
|||
list_init(&tq->moves);
|
||||
list_init(&tq->history);
|
||||
struct move *head_sentinel = move_alloc(), *tail_sentinel = move_alloc();
|
||||
head_sentinel->print_time = -1.0;
|
||||
tail_sentinel->print_time = tail_sentinel->move_t = NEVER_TIME;
|
||||
list_add_head(&head_sentinel->node, &tq->moves);
|
||||
list_add_tail(&tail_sentinel->node, &tq->moves);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue