diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-07-19 11:12:58 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-07-29 16:35:30 -0400 |
commit | e2f483aea3a9eb885a410b264916ffb711daccfa (patch) | |
tree | 24bea695e8f87b49a481486652e507ea2e067373 /klippy/chelper | |
parent | d1b41ea4a1e1419c83aa1bfad31d24a51ff533ff (diff) | |
download | kutter-e2f483aea3a9eb885a410b264916ffb711daccfa.tar.gz kutter-e2f483aea3a9eb885a410b264916ffb711daccfa.tar.xz kutter-e2f483aea3a9eb885a410b264916ffb711daccfa.zip |
trapq: Rename trapq_free_moves() to trapq_finalize_moves()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
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 |