mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-29 23:07:42 +00:00
Fix MBL error messages
This commit is contained in:
parent
6f0fa90edb
commit
a0a21e5a2f
@ -4591,7 +4591,7 @@ void home_all_axes() { gcode_G28(true); }
|
|||||||
if (parser.seenval('X')) {
|
if (parser.seenval('X')) {
|
||||||
px = parser.value_int() - 1;
|
px = parser.value_int() - 1;
|
||||||
if (!WITHIN(px, 0, GRID_MAX_POINTS_X - 1)) {
|
if (!WITHIN(px, 0, GRID_MAX_POINTS_X - 1)) {
|
||||||
SERIAL_PROTOCOLPAIR("X out of range (0-", int(GRID_MAX_POINTS_X));
|
SERIAL_PROTOCOLPAIR("X out of range (1-", int(GRID_MAX_POINTS_X));
|
||||||
SERIAL_PROTOCOLLNPGM(")");
|
SERIAL_PROTOCOLLNPGM(")");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -4604,7 +4604,7 @@ void home_all_axes() { gcode_G28(true); }
|
|||||||
if (parser.seenval('Y')) {
|
if (parser.seenval('Y')) {
|
||||||
py = parser.value_int() - 1;
|
py = parser.value_int() - 1;
|
||||||
if (!WITHIN(py, 0, GRID_MAX_POINTS_Y - 1)) {
|
if (!WITHIN(py, 0, GRID_MAX_POINTS_Y - 1)) {
|
||||||
SERIAL_PROTOCOLPAIR("Y out of range (0-", int(GRID_MAX_POINTS_Y));
|
SERIAL_PROTOCOLPAIR("Y out of range (1-", int(GRID_MAX_POINTS_Y));
|
||||||
SERIAL_PROTOCOLLNPGM(")");
|
SERIAL_PROTOCOLLNPGM(")");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user