+Bottom: ff33f6a6b492d6f370c84bddac52ac277dbd0fd9
+Top: 681cec9bc49d48ceecfc6d5e9eff1c4f7f623fc6
+Author: Ian Jackson <ijackson@chiark.greenend.org.uk>
+Date: 2012-08-11 01:34:58 +0100
+
+Refresh of motion-control-max-min
+
+---
+
+diff --git a/Marlin/Marlin.pde b/Marlin/Marlin.pde
+index d471d49..5268a3d 100644
+--- a/Marlin/Marlin.pde
++++ b/Marlin/Marlin.pde
+@@ -1544,15 +1544,15 @@ void get_arc_coordinates()
+ void clamp_to_software_endstops(float target[3])
+ {
+ if (min_software_endstops) {
+- if (destination[X_AXIS] < X_MIN_POS) destination[X_AXIS] = X_MIN_POS;
+- if (destination[Y_AXIS] < Y_MIN_POS) destination[Y_AXIS] = Y_MIN_POS;
+- if (destination[Z_AXIS] < Z_MIN_POS) destination[Z_AXIS] = Z_MIN_POS;
++ if (target[X_AXIS] < X_MIN_POS) target[X_AXIS] = X_MIN_POS;
++ if (target[Y_AXIS] < Y_MIN_POS) target[Y_AXIS] = Y_MIN_POS;
++ if (target[Z_AXIS] < Z_MIN_POS) target[Z_AXIS] = Z_MIN_POS;
+ }
+
+ if (max_software_endstops) {
+- if (destination[X_AXIS] > X_MAX_POS) destination[X_AXIS] = X_MAX_POS;
+- if (destination[Y_AXIS] > Y_MAX_POS) destination[Y_AXIS] = Y_MAX_POS;
+- if (destination[Z_AXIS] > Z_MAX_POS) destination[Z_AXIS] = Z_MAX_POS;
++ if (target[X_AXIS] > X_MAX_POS) target[X_AXIS] = X_MAX_POS;
++ if (target[Y_AXIS] > Y_MAX_POS) target[Y_AXIS] = Y_MAX_POS;
++ if (target[Z_AXIS] > Z_MAX_POS) target[Z_AXIS] = Z_MAX_POS;
+ }
+ }