Преглед на файлове

Fix MBL line_to_destination

Fix #10708
Scott Lahteine преди 7 години
родител
ревизия
836b0bbeee
променени са 2 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 1
    2
      Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.h
  2. 1
    1
      Marlin/src/module/motion.cpp

+ 1
- 2
Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.h Целия файл

@@ -114,9 +114,8 @@ public:
114 114
     ;
115 115
   }
116 116
 
117
-  // Support functions, which may be embedded in the class later
118 117
   #if IS_CARTESIAN && DISABLED(SEGMENT_LEVELED_MOVES)
119
-    void line_to_destination(const float fr_mm_s, uint8_t x_splits=0xFF, uint8_t y_splits=0xFF);
118
+    static void line_to_destination(const float fr_mm_s, uint8_t x_splits=0xFF, uint8_t y_splits=0xFF);
120 119
   #endif
121 120
 };
122 121
 

+ 1
- 1
Marlin/src/module/motion.cpp Целия файл

@@ -780,7 +780,7 @@ float soft_endstop_min[XYZ] = { X_MIN_BED, Y_MIN_BED, Z_MIN_POS },
780 780
            */
781 781
           if (current_position[X_AXIS] != destination[X_AXIS] || current_position[Y_AXIS] != destination[Y_AXIS]) {
782 782
             #if ENABLED(MESH_BED_LEVELING)
783
-              mesh_line_to_destination(MMS_SCALED(feedrate_mm_s));
783
+              mbl.line_to_destination(MMS_SCALED(feedrate_mm_s));
784 784
             #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
785 785
               bilinear_line_to_destination(MMS_SCALED(feedrate_mm_s));
786 786
             #endif

Loading…
Отказ
Запис