From 6bd5f4e44ec4898a6082c12df4ca7e4408a9df93 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 30 Dec 2016 17:02:28 -0500 Subject: 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 --- klippy/chelper.py | 1 + 1 file changed, 1 insertion(+) (limited to 'klippy/chelper.py') 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); -- cgit v1.2.3-70-g09d2