diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-12-30 17:02:28 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-12-30 20:14:48 -0500 |
commit | 6bd5f4e44ec4898a6082c12df4ca7e4408a9df93 (patch) | |
tree | 19909ceb9b5efe15c64a199eab9e610c59e7df11 /klippy/chelper.py | |
parent | 6138d18f4bf5bdb2eb2639f4f9da40a1d52121ad (diff) | |
download | kutter-6bd5f4e44ec4898a6082c12df4ca7e4408a9df93.tar.gz kutter-6bd5f4e44ec4898a6082c12df4ca7e4408a9df93.tar.xz kutter-6bd5f4e44ec4898a6082c12df4ca7e4408a9df93.zip |
stepcompress: Using normal message priority system during homing
The endstop homing system requires all queue_step commands be in the
MCU's 'move queue' before endstop checking starts. Use the normal
message priority system to request that stepper queue_step commands
are received prior to the start of the end_stop_home command. This
simplifies the code and removes the need for special serial queue
flushing.
This also fixes a bug in homing operations that take longer than 2^31
clock ticks.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper.py')
-rw-r--r-- | klippy/chelper.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/chelper.py b/klippy/chelper.py index 4384fe28..3603d839 100644 --- a/klippy/chelper.py +++ b/klippy/chelper.py @@ -33,6 +33,7 @@ defs_stepcompress = """ , double accel_multiplier, double step_dist, double height , double closestxy_d, double closest_height2, double movez_r); void stepcompress_reset(struct stepcompress *sc, uint64_t last_step_clock); + void stepcompress_set_homing(struct stepcompress *sc, uint64_t homing_clock); void stepcompress_queue_msg(struct stepcompress *sc , uint32_t *data, int len); uint32_t stepcompress_get_errors(struct stepcompress *sc); |