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
This commit is contained in:
henols 2014-03-07 19:33:57 +01:00
parent 76ab1b6a42
commit 3d053d800c

View File

@ -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) void mc_probe_cycle(float *target, float feed_rate, uint8_t invert_feed_rate)
#endif #endif
{ {
if (sys.state != STATE_CYCLE) protocol_auto_cycle_start();
protocol_buffer_synchronize(); // Finish all queued commands protocol_buffer_synchronize(); // Finish all queued commands
if (sys.abort) { return; } // Return if system reset has been issued. if (sys.abort) { return; } // Return if system reset has been issued.