Browse Source

🐛 Show bed size as 'work:' in M115

Fixes #22598
Scott Lahteine 3 years ago
parent
commit
033e65ec85
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      Marlin/src/gcode/host/M115.cpp

+ 4
- 2
Marlin/src/gcode/host/M115.cpp View File

@@ -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(),

Loading…
Cancel
Save