Skip to content

Commit 068dd48

Browse files
thinkyheadDarred
authored andcommitted
🐛 Show bed size as 'work:' in M115
Fixes MarlinFirmware#22598
1 parent d2e023d commit 068dd48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Marlin/src/gcode/host/M115.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,11 @@ void GcodeSuite::M115() {
166166

167167
// Machine Geometry
168168
#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 },
170172
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;
172174
apply_motion_limits(cmin);
173175
apply_motion_limits(cmax);
174176
const xyz_pos_t lmin = dmin.asLogical(), lmax = dmax.asLogical(),

0 commit comments

Comments
 (0)