|
|
@ -4795,21 +4795,20 @@ inline void gcode_M503() {
|
|
|
|
float value = code_value();
|
|
|
|
float value = code_value();
|
|
|
|
if (Z_PROBE_OFFSET_RANGE_MIN <= value && value <= Z_PROBE_OFFSET_RANGE_MAX) {
|
|
|
|
if (Z_PROBE_OFFSET_RANGE_MIN <= value && value <= Z_PROBE_OFFSET_RANGE_MAX) {
|
|
|
|
zprobe_zoffset = value;
|
|
|
|
zprobe_zoffset = value;
|
|
|
|
SERIAL_ECHOLNPGM(MSG_OK);
|
|
|
|
SERIAL_ECHOPGM(MSG_OK);
|
|
|
|
SERIAL_EOL;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
SERIAL_ECHOPGM(MSG_Z_MIN);
|
|
|
|
SERIAL_ECHOPGM(MSG_Z_MIN);
|
|
|
|
SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MIN);
|
|
|
|
SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MIN);
|
|
|
|
SERIAL_ECHOPGM(MSG_Z_MAX);
|
|
|
|
SERIAL_ECHOPGM(MSG_Z_MAX);
|
|
|
|
SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MAX);
|
|
|
|
SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MAX);
|
|
|
|
SERIAL_EOL;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
SERIAL_ECHOPAIR(": ", zprobe_zoffset);
|
|
|
|
SERIAL_ECHOPAIR(": ", zprobe_zoffset);
|
|
|
|
SERIAL_EOL;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SERIAL_EOL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif // CUSTOM_M_CODE_SET_Z_PROBE_OFFSET
|
|
|
|
#endif // CUSTOM_M_CODE_SET_Z_PROBE_OFFSET
|
|
|
|