瀏覽代碼

Fix M125 XY parameters, export get_homing_bump_feedrate

Scott Lahteine 6 年之前
父節點
當前提交
be9a409980
共有 3 個檔案被更改,包括 5 行新增4 行删除
  1. 2
    2
      Marlin/src/gcode/feature/pause/M125.cpp
  2. 2
    2
      Marlin/src/module/motion.cpp
  3. 1
    0
      Marlin/src/module/motion.h

+ 2
- 2
Marlin/src/gcode/feature/pause/M125.cpp 查看文件

@@ -61,8 +61,8 @@ void GcodeSuite::M125() {
61 61
   point_t park_point = NOZZLE_PARK_POINT;
62 62
 
63 63
   // Move XY axes to filament change position or given position
64
-  if (parser.seenval('X')) park_point.x = parser.linearval('X');
65
-  if (parser.seenval('Y')) park_point.y = parser.linearval('Y');
64
+  if (parser.seenval('X')) park_point.x = RAW_X_POSITION(parser.linearval('X'));
65
+  if (parser.seenval('Y')) park_point.y = RAW_X_POSITION(parser.linearval('Y'));
66 66
 
67 67
   // Lift Z axis
68 68
   if (parser.seenval('Z')) park_point.z = parser.linearval('Z');

+ 2
- 2
Marlin/src/module/motion.cpp 查看文件

@@ -294,7 +294,7 @@ void buffer_line_to_destination(const float fr_mm_s) {
294 294
 #endif // IS_KINEMATIC
295 295
 
296 296
 /**
297
- *  Plan a move to (X, Y, Z) and set the current_position
297
+ * Plan a move to (X, Y, Z) and set the current_position
298 298
  */
299 299
 void do_blocking_move_to(const float rx, const float ry, const float rz, const float &fr_mm_s/*=0.0*/) {
300 300
   const float old_feedrate_mm_s = feedrate_mm_s;
@@ -1032,7 +1032,7 @@ void prepare_move_to_destination() {
1032 1032
 /**
1033 1033
  * Homing bump feedrate (mm/s)
1034 1034
  */
1035
-inline float get_homing_bump_feedrate(const AxisEnum axis) {
1035
+float get_homing_bump_feedrate(const AxisEnum axis) {
1036 1036
   #if HOMING_Z_WITH_PROBE
1037 1037
     if (axis == Z_AXIS) return MMM_TO_MMS(Z_PROBE_SPEED_SLOW);
1038 1038
   #endif

+ 1
- 0
Marlin/src/module/motion.h 查看文件

@@ -73,6 +73,7 @@ extern float cartes[XYZ];
73 73
  */
74 74
 extern const float homing_feedrate_mm_s[XYZ];
75 75
 FORCE_INLINE float homing_feedrate(const AxisEnum a) { return pgm_read_float(&homing_feedrate_mm_s[a]); }
76
+float get_homing_bump_feedrate(const AxisEnum axis);
76 77
 
77 78
 extern float feedrate_mm_s;
78 79
 

Loading…
取消
儲存