ソースを参照

🐛 Show bed size as 'work:' in M115

Fixes #22598
Scott Lahteine 2年前
コミット
033e65ec85
1個のファイルの変更4行の追加2行の削除
  1. 4
    2
      Marlin/src/gcode/host/M115.cpp

+ 4
- 2
Marlin/src/gcode/host/M115.cpp ファイルの表示

@@ -166,9 +166,11 @@ void GcodeSuite::M115() {
166 166
 
167 167
     // Machine Geometry
168 168
     #if ENABLED(M115_GEOMETRY_REPORT)
169
-      const xyz_pos_t dmin = { X_MIN_POS, Y_MIN_POS, Z_MIN_POS },
169
+      const xyz_pos_t bmin = { 0, 0, 0 },
170
+                      bmax = { X_BED_SIZE , Y_BED_SIZE, Z_MAX_POS },
171
+                      dmin = { X_MIN_POS, Y_MIN_POS, Z_MIN_POS },
170 172
                       dmax = { X_MAX_POS, Y_MAX_POS, Z_MAX_POS };
171
-      xyz_pos_t cmin = dmin, cmax = dmax;
173
+      xyz_pos_t cmin = bmin, cmax = bmax;
172 174
       apply_motion_limits(cmin);
173 175
       apply_motion_limits(cmax);
174 176
       const xyz_pos_t lmin = dmin.asLogical(), lmax = dmax.asLogical(),

読み込み中…
キャンセル
保存