A single SERIAL_ECHO macro type (#12557)
This commit is contained in:
@@ -263,19 +263,19 @@ void GcodeSuite::G34() {
|
||||
void GcodeSuite::M422() {
|
||||
const int8_t zstepper = parser.intval('S') - 1;
|
||||
if (!WITHIN(zstepper, 0, Z_STEPPER_COUNT - 1)) {
|
||||
SERIAL_PROTOCOLLNPGM("?(S) Z-Stepper index invalid.");
|
||||
SERIAL_ECHOLNPGM("?(S) Z-Stepper index invalid.");
|
||||
return;
|
||||
}
|
||||
|
||||
const float x_pos = parser.floatval('X', z_auto_align_xpos[zstepper]);
|
||||
if (!WITHIN(x_pos, X_MIN_POS, X_MAX_POS)) {
|
||||
SERIAL_PROTOCOLLNPGM("?(X) out of bounds.");
|
||||
SERIAL_ECHOLNPGM("?(X) out of bounds.");
|
||||
return;
|
||||
}
|
||||
|
||||
const float y_pos = parser.floatval('Y', z_auto_align_ypos[zstepper]);
|
||||
if (!WITHIN(y_pos, Y_MIN_POS, Y_MAX_POS)) {
|
||||
SERIAL_PROTOCOLLNPGM("?(Y) out of bounds.");
|
||||
SERIAL_ECHOLNPGM("?(Y) out of bounds.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user