diff options
Diffstat (limited to 'klippy/chelper')
-rw-r--r-- | klippy/chelper/__init__.py | 2 | ||||
-rw-r--r-- | klippy/chelper/trapq.c | 4 | ||||
-rw-r--r-- | klippy/chelper/trapq.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/klippy/chelper/__init__.py b/klippy/chelper/__init__.py index e8760b54..09897927 100644 --- a/klippy/chelper/__init__.py +++ b/klippy/chelper/__init__.py @@ -75,7 +75,7 @@ defs_trapq = """ , double start_v, double cruise_v, double accel); struct trapq *trapq_alloc(void); void trapq_free(struct trapq *tq); - void trapq_free_moves(struct trapq *tq, double print_time); + void trapq_finalize_moves(struct trapq *tq, double print_time); """ defs_kin_cartesian = """ diff --git a/klippy/chelper/trapq.c b/klippy/chelper/trapq.c index 7dc5a62a..177db8d8 100644 --- a/klippy/chelper/trapq.c +++ b/klippy/chelper/trapq.c @@ -157,9 +157,9 @@ trapq_add_move(struct trapq *tq, struct move *m) tail_sentinel->print_time = 0.; } -// Free any moves older than `print_time` from the trapezoid velocity queue +// Expire any moves older than `print_time` from the trapezoid velocity queue void __visible -trapq_free_moves(struct trapq *tq, double print_time) +trapq_finalize_moves(struct trapq *tq, double print_time) { struct move *head_sentinel = list_first_entry(&tq->moves, struct move,node); struct move *tail_sentinel = list_last_entry(&tq->moves, struct move, node); diff --git a/klippy/chelper/trapq.h b/klippy/chelper/trapq.h index 94590061..a930a2e1 100644 --- a/klippy/chelper/trapq.h +++ b/klippy/chelper/trapq.h @@ -36,6 +36,6 @@ struct trapq *trapq_alloc(void); void trapq_free(struct trapq *tq); void trapq_check_sentinels(struct trapq *tq); void trapq_add_move(struct trapq *tq, struct move *m); -void trapq_free_moves(struct trapq *tq, double print_time); +void trapq_finalize_moves(struct trapq *tq, double print_time); #endif // trapq.h |