Parcourir la 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 il y a 11 ans
Parent
révision
01edf22a10
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp Voir le fichier

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

Chargement…
Annuler
Enregistrer