From 92b093ee437f5cfb1105a7dc4dd3af31cdd9900f Mon Sep 17 00:00:00 2001 From: cprezzi Date: Sun, 8 Oct 2017 16:03:01 +0200 Subject: [PATCH] Corrected G10 L20 P0 command (setZero) --- grbl/gcode.c | 4 ++-- grbl/gcode.h | 2 +- grbl/grbl.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/grbl/gcode.c b/grbl/gcode.c index 8290484..9d48b1c 100644 --- a/grbl/gcode.c +++ b/grbl/gcode.c @@ -313,9 +313,9 @@ uint8_t gc_execute_line(char *line) case 'R': word_bit = WORD_R; gc_block.values.r = value; break; case 'S': word_bit = WORD_S; gc_block.values.s = value; break; case 'T': word_bit = WORD_T; - if (value > MAX_TOOL_NUMBER) { FAIL(STATUS_GCODE_MAX_VALUE_EXCEEDED); } + if (value > MAX_TOOL_NUMBER) { FAIL(STATUS_GCODE_MAX_VALUE_EXCEEDED); } gc_block.values.t = int_value; - break; + break; case 'X': word_bit = WORD_X; gc_block.values.xyza[X_AXIS] = value; axis_words |= (1<