From 55c0be5f4101e20642e9019e717c50a3678235cb Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sun, 21 Dec 2014 18:34:43 +0100 Subject: [PATCH] gcode_process.c: same homing order for all axes. This is, first towards MIN, then towards MAX. Now also matches order for homing all, which is defined in home() in home.c. Partially fixes issue #107. --- gcode_process.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcode_process.c b/gcode_process.c index 3b031dd..4cb7a41 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -212,10 +212,10 @@ void process_gcode_command() { axisSelected = 1; } if (next_target.seen_Z) { - #if defined Z_MAX_PIN - home_z_positive(); - #elif defined Z_MIN_PIN - home_z_negative(); + #if defined Z_MIN_PIN + home_z_negative(); + #elif defined Z_MAX_PIN + home_z_positive(); #endif axisSelected = 1; }