From 3d053d800c81f57d9e6292d99f19a67277b3571b Mon Sep 17 00:00:00 2001 From: henols Date: Fri, 7 Mar 2014 19:33:57 +0100 Subject: [PATCH] Probing command gets stuck in hold if several g38.2 are submitted Ex. G0 X0 Y0 Z0 G38.2 Z-10 F100 G10 L20 P0 Z0 G0 Z2 G38.2 Z-1 F50 G10 L20 P0 Z0 G0 Z2 G0 X0 Y0 G38.2 Z-1 F100 G0 Z2 --- motion_control.c | 1 + 1 file changed, 1 insertion(+) diff --git a/motion_control.c b/motion_control.c index 3b2080c..6fda0c2 100644 --- a/motion_control.c +++ b/motion_control.c @@ -279,6 +279,7 @@ void mc_probe_cycle(float *target, float feed_rate, uint8_t invert_feed_rate, in void mc_probe_cycle(float *target, float feed_rate, uint8_t invert_feed_rate) #endif { + if (sys.state != STATE_CYCLE) protocol_auto_cycle_start(); protocol_buffer_synchronize(); // Finish all queued commands if (sys.abort) { return; } // Return if system reset has been issued.