Skip to content

Commit 92b093e

Browse files
committed
Corrected G10 L20 P0 command (setZero)
1 parent 5ad7af8 commit 92b093e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

grbl/gcode.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,9 @@ uint8_t gc_execute_line(char *line)
313313
case 'R': word_bit = WORD_R; gc_block.values.r = value; break;
314314
case 'S': word_bit = WORD_S; gc_block.values.s = value; break;
315315
case 'T': word_bit = WORD_T;
316-
if (value > MAX_TOOL_NUMBER) { FAIL(STATUS_GCODE_MAX_VALUE_EXCEEDED); }
316+
if (value > MAX_TOOL_NUMBER) { FAIL(STATUS_GCODE_MAX_VALUE_EXCEEDED); }
317317
gc_block.values.t = int_value;
318-
break;
318+
break;
319319
case 'X': word_bit = WORD_X; gc_block.values.xyza[X_AXIS] = value; axis_words |= (1<<X_AXIS); break;
320320
case 'Y': word_bit = WORD_Y; gc_block.values.xyza[Y_AXIS] = value; axis_words |= (1<<Y_AXIS); break;
321321
case 'Z': word_bit = WORD_Z; gc_block.values.xyza[Z_AXIS] = value; axis_words |= (1<<Z_AXIS); break;

grbl/gcode.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ typedef struct {
199199

200200
typedef struct {
201201
float f; // Feed
202-
float ijk[3]; // I,J,K Axis arc offsets
202+
float ijk[N_AXIS]; // I,J,K Axis arc offsets
203203
uint8_t l; // G10 or canned cycles parameters
204204
int32_t n; // Line number
205205
float p; // G10 or dwell parameters

grbl/grbl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
// Grbl versioning system
2525
#define GRBL_VERSION "1.1f"
26-
#define GRBL_VERSION_BUILD "20170511"
26+
#define GRBL_VERSION_BUILD "20171008"
2727

2828
// Define standard libraries used by Grbl.
2929
#include <avr/io.h>

0 commit comments

Comments
 (0)