aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/__init__.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-08-06 09:56:06 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-08-06 11:19:36 -0400
commitb17ec3d2e9d0afb96351a6ed26fba958584899ac (patch)
tree8b4ff3409373ecb5ebeb3b7fead0a3b4949efc4a /klippy/chelper/__init__.py
parent3176150050b666a582ac0993dc14e6663133ecb9 (diff)
downloadkutter-b17ec3d2e9d0afb96351a6ed26fba958584899ac.tar.gz
kutter-b17ec3d2e9d0afb96351a6ed26fba958584899ac.tar.xz
kutter-b17ec3d2e9d0afb96351a6ed26fba958584899ac.zip
stepcompress: Pass clock to stepcompress_set_last_position()
Using sc->last_step_clock for the last position marker does not work properly, because the stepper.py code calls stepcompress_reset() prior to calling stepcompress_set_last_position(). Fix by passing an explicit clock to stepcompress_set_last_position(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/__init__.py')
-rw-r--r--klippy/chelper/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/chelper/__init__.py b/klippy/chelper/__init__.py
index 6c579ab7..86560939 100644
--- a/klippy/chelper/__init__.py
+++ b/klippy/chelper/__init__.py
@@ -43,7 +43,7 @@ defs_stepcompress = """
void stepcompress_free(struct stepcompress *sc);
int stepcompress_reset(struct stepcompress *sc, uint64_t last_step_clock);
int stepcompress_set_last_position(struct stepcompress *sc
- , int64_t last_position);
+ , uint64_t clock, int64_t last_position);
int64_t stepcompress_find_past_position(struct stepcompress *sc
, uint64_t clock);
int stepcompress_queue_msg(struct stepcompress *sc