Browse Source

Make run_z_probe available for any bed probe

Scott Lahteine 9 years ago
parent
commit
51d52cb52a
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      Marlin/Marlin_main.cpp

+ 8
- 0
Marlin/Marlin_main.cpp View File

@@ -2021,6 +2021,10 @@ static void setup_for_endstop_move() {
2021 2021
 
2022 2022
   #endif // !AUTO_BED_LEVELING_GRID
2023 2023
 
2024
+#endif // AUTO_BED_LEVELING_FEATURE
2025
+
2026
+#if HAS_BED_PROBE
2027
+
2024 2028
   static void run_z_probe() {
2025 2029
 
2026 2030
     float old_feedrate = feedrate;
@@ -2105,6 +2109,10 @@ static void setup_for_endstop_move() {
2105 2109
     feedrate = old_feedrate;
2106 2110
   }
2107 2111
 
2112
+#endif // HAS_BED_PROBE
2113
+
2114
+#if ENABLED(AUTO_BED_LEVELING_FEATURE)
2115
+
2108 2116
   inline void do_blocking_move_to_xy(float x, float y) {
2109 2117
     do_blocking_move_to(x, y, current_position[Z_AXIS]);
2110 2118
   }

Loading…
Cancel
Save