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.

Johann Rocholl 12 years ago
parent
commit
6dfb8a2187
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/Marlin_main.cpp

+ 2
- 1
Marlin/Marlin_main.cpp View File

@@ -729,7 +729,8 @@ void process_commands()
729 729
         destination[i] = current_position[i];
730 730
       }
731 731
       feedrate = 0.0;
732
-      home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2])));
732
+      home_all_axis = !((code_seen(axis_codes[0])) || (code_seen(axis_codes[1])) || (code_seen(axis_codes[2])))
733
+                    || ((code_seen(axis_codes[0])) && (code_seen(axis_codes[1])) && (code_seen(axis_codes[2])));
733 734
       
734 735
       #ifdef QUICK_HOME
735 736
       if (home_all_axis)  // Move all carriages up together until the first endstop is hit.

Loading…
Cancel
Save