gcode_process.c: there's no point in setting E on a G92 ...
... as E is always relative. Saves 90 bytes binary size.
This commit is contained in:
parent
f9565633ea
commit
d37fee8e82
|
|
@ -225,15 +225,12 @@ void process_gcode_command() {
|
||||||
startpoint.Z = current_position.Z = next_target.target.Z;
|
startpoint.Z = current_position.Z = next_target.target.Z;
|
||||||
axisSelected = 1;
|
axisSelected = 1;
|
||||||
}
|
}
|
||||||
if (next_target.seen_E) {
|
// there's no point in setting E, as E is always relative
|
||||||
startpoint.E = current_position.E = next_target.target.E;
|
|
||||||
axisSelected = 1;
|
|
||||||
}
|
|
||||||
if (axisSelected == 0) {
|
if (axisSelected == 0) {
|
||||||
startpoint.X = current_position.X =
|
startpoint.X = current_position.X =
|
||||||
startpoint.Y = current_position.Y =
|
startpoint.Y = current_position.Y =
|
||||||
startpoint.Z = current_position.Z =
|
startpoint.Z = current_position.Z = 0;
|
||||||
startpoint.E = current_position.E = 0;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue