Browse Source

Fix home_all_axis to make QUICK_HOME work with Repetier-Host which sends G28 X0 Y0 Z0 instead of G28. Thanks to Matt Schoenholz for reporting this issue.

Erik van der Zalm 11 years ago
parent
commit
01edf22a10
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

@@ -809,8 +809,8 @@ void process_commands()
809 809
         destination[i] = current_position[i];
810 810
       }
811 811
       feedrate = 0.0;
812
-      home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2])));
813
-
812
+      home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2])))
813
+                    || ((code_seen(axis_codes[0])) && (code_seen(axis_codes[1])) && (code_seen(axis_codes[2])));
814 814
       #if Z_HOME_DIR > 0                      // If homing away from BED do Z first
815 815
       if((home_all_axis) || (code_seen(axis_codes[Z_AXIS]))) {
816 816
         HOMEAXIS(Z);

Loading…
Cancel
Save