Browse Source

Fix MBL line_to_destination

Fix #10708
Scott Lahteine 7 years ago
parent
commit
836b0bbeee

+ 1
- 2
Marlin/src/feature/bedlevel/mbl/mesh_bed_leveling.h View File

114
     ;
114
     ;
115
   }
115
   }
116
 
116
 
117
-  // Support functions, which may be embedded in the class later
118
   #if IS_CARTESIAN && DISABLED(SEGMENT_LEVELED_MOVES)
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
   #endif
119
   #endif
121
 };
120
 };
122
 
121
 

+ 1
- 1
Marlin/src/module/motion.cpp View File

780
            */
780
            */
781
           if (current_position[X_AXIS] != destination[X_AXIS] || current_position[Y_AXIS] != destination[Y_AXIS]) {
781
           if (current_position[X_AXIS] != destination[X_AXIS] || current_position[Y_AXIS] != destination[Y_AXIS]) {
782
             #if ENABLED(MESH_BED_LEVELING)
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
             #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
784
             #elif ENABLED(AUTO_BED_LEVELING_BILINEAR)
785
               bilinear_line_to_destination(MMS_SCALED(feedrate_mm_s));
785
               bilinear_line_to_destination(MMS_SCALED(feedrate_mm_s));
786
             #endif
786
             #endif

Loading…
Cancel
Save