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<