gcode_process.c, G92: also reset next_target.

This costs a whopping 88 bytes.
This commit is contained in:
Markus Hitter 2011-03-06 23:24:08 +01:00
parent 03b52e0340
commit fe0dc5408b
1 changed files with 3 additions and 3 deletions

View File

@ -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;