Browse Source

Fix comment on Z raise for homing, save a few bytes

Scott Lahteine 9 years ago
parent
commit
6559f7359f
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      Marlin/Marlin_main.cpp

+ 5
- 5
Marlin/Marlin_main.cpp View File

2916
 
2916
 
2917
     #elif defined(MIN_Z_HEIGHT_FOR_HOMING) && MIN_Z_HEIGHT_FOR_HOMING > 0
2917
     #elif defined(MIN_Z_HEIGHT_FOR_HOMING) && MIN_Z_HEIGHT_FOR_HOMING > 0
2918
 
2918
 
2919
-      // Raise Z before homing any other axes and z is not already high enough (never lower z)
2920
-      float z_dest = (current_position[Z_AXIS] += MIN_Z_HEIGHT_FOR_HOMING);
2919
+      // Raise Z before homing, if specified
2920
+      destination[Z_AXIS] = (current_position[Z_AXIS] += MIN_Z_HEIGHT_FOR_HOMING);
2921
       #if ENABLED(DEBUG_LEVELING_FEATURE)
2921
       #if ENABLED(DEBUG_LEVELING_FEATURE)
2922
         if (DEBUGGING(LEVELING)) {
2922
         if (DEBUGGING(LEVELING)) {
2923
-          SERIAL_ECHOPAIR("Raise Z (before homing) to ", z_dest);
2923
+          SERIAL_ECHOPAIR("Raise Z (before homing) to ", destination[Z_AXIS]);
2924
           SERIAL_EOL;
2924
           SERIAL_EOL;
2925
         }
2925
         }
2926
       #endif
2926
       #endif
2928
       feedrate = homing_feedrate[Z_AXIS];
2928
       feedrate = homing_feedrate[Z_AXIS];
2929
 
2929
 
2930
       #if HAS_BED_PROBE
2930
       #if HAS_BED_PROBE
2931
-        do_blocking_move_to_z(z_dest);
2931
+        do_blocking_move_to_z(destination[Z_AXIS]);
2932
       #else
2932
       #else
2933
-        line_to_z(z_dest);
2933
+        line_to_z(destination[Z_AXIS]);
2934
         stepper.synchronize();
2934
         stepper.synchronize();
2935
       #endif
2935
       #endif
2936
 
2936
 

Loading…
Cancel
Save