Skip to content

Commit 7e10c43

Browse files
committed
Fix G10 for 4th axis A
1 parent bf7f246 commit 7e10c43

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

grbl/gcode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ uint8_t gc_execute_line(char *line)
528528
else { coord_select = gc_block.modal.coord_select; } // Index P0 as the active coordinate system
529529

530530
// NOTE: Store parameter data in IJK values. By rule, they are not in use with this command.
531+
// FIXME: Instead of IJK, we'd better use: float vector[N_AXIS]; // [DG]
531532
if (!settings_read_coord_data(coord_select,gc_block.values.ijk)) { FAIL(STATUS_SETTING_READ_FAIL); } // [EEPROM read fail]
532533

533534
// Pre-calculate the coordinate data changes.

grbl/gcode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ typedef struct {
195195

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

0 commit comments

Comments
 (0)