G18 reporting bug fix.
- G18 wasn’t getting reported back to the user correctly, even though it has been set internally. Fixed the reporting code to reflect this accurately.
This commit is contained in:
parent
1922887c9b
commit
f4f7d7d05e
9
report.c
9
report.c
@ -235,10 +235,11 @@ void report_gcode_modes()
|
|||||||
printPgmString(PSTR(" G"));
|
printPgmString(PSTR(" G"));
|
||||||
printInteger(gc.coord_select+54);
|
printInteger(gc.coord_select+54);
|
||||||
|
|
||||||
if (gc.plane_axis_0 == X_AXIS) {
|
switch (gc.plane_axis_0) {
|
||||||
if (gc.plane_axis_1 == Y_AXIS) { printPgmString(PSTR(" G17")); }
|
case X_AXIS: printPgmString(PSTR(" G17")); break;
|
||||||
else { printPgmString(PSTR(" G18")); }
|
case Z_AXIS: printPgmString(PSTR(" G18")); break;
|
||||||
} else { printPgmString(PSTR(" G19")); }
|
default: printPgmString(PSTR(" G19"));
|
||||||
|
}
|
||||||
|
|
||||||
if (gc.inches_mode) { printPgmString(PSTR(" G20")); }
|
if (gc.inches_mode) { printPgmString(PSTR(" G20")); }
|
||||||
else { printPgmString(PSTR(" G21")); }
|
else { printPgmString(PSTR(" G21")); }
|
||||||
|
Loading…
Reference in New Issue
Block a user