From d3bf28f025251e4e721565f1afd5e76af647c52c Mon Sep 17 00:00:00 2001 From: henols Date: Fri, 7 Mar 2014 19:33:57 +0100 Subject: [PATCH 1/2] 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. From 60dd609b7956037369d5591bee33b778a6614efd Mon Sep 17 00:00:00 2001 From: Rob Brown Date: Tue, 11 Mar 2014 09:23:39 +0800 Subject: [PATCH 2/2] Added Probing to Mega2560 and fixed Shapeoko2 compile error --- cpu_map.h | 9 ++++++++- defaults.h | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/cpu_map.h b/cpu_map.h index 060135a..797f6bf 100644 --- a/cpu_map.h +++ b/cpu_map.h @@ -223,10 +223,17 @@ #define PINOUT_PCMSK PCMSK2 // Pin change interrupt register #define PINOUT_MASK ((1<