gcode_process.c, G92: also reset next_target.
This costs a whopping 88 bytes.
This commit is contained in:
parent
03b52e0340
commit
fe0dc5408b
|
|
@ -218,9 +218,9 @@ void process_gcode_command() {
|
|||
// there's no point in setting E, as E is always relative
|
||||
|
||||
if (axisSelected == 0) {
|
||||
startpoint.X = current_position.X =
|
||||
startpoint.Y = current_position.Y =
|
||||
startpoint.Z = current_position.Z = 0;
|
||||
startpoint.X = current_position.X = next_target.target.X =
|
||||
startpoint.Y = current_position.Y = next_target.target.Y =
|
||||
startpoint.Z = current_position.Z = next_target.target.Z = 0;
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue