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.
This commit is contained in:
Markus Hitter 2014-12-21 18:34:43 +01:00
parent f6115688c5
commit 55c0be5f41
1 changed files with 4 additions and 4 deletions

View File

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