|
@@ -4786,31 +4786,29 @@ inline void gcode_M503() {
|
4786
|
4786
|
#ifdef CUSTOM_M_CODE_SET_Z_PROBE_OFFSET
|
4787
|
4787
|
|
4788
|
4788
|
inline void gcode_SET_Z_PROBE_OFFSET() {
|
4789
|
|
- float value;
|
|
4789
|
+
|
|
4790
|
+ SERIAL_ECHO_START;
|
|
4791
|
+ SERIAL_ECHOPGM(MSG_ZPROBE_ZOFFSET);
|
|
4792
|
+ SERIAL_CHAR(' ');
|
|
4793
|
+
|
4790
|
4794
|
if (code_seen('Z')) {
|
4791
|
|
- value = code_value();
|
|
4795
|
+ float value = code_value();
|
4792
|
4796
|
if (Z_PROBE_OFFSET_RANGE_MIN <= value && value <= Z_PROBE_OFFSET_RANGE_MAX) {
|
4793
|
4797
|
zprobe_zoffset = value;
|
4794
|
|
- SERIAL_ECHO_START;
|
4795
|
|
- SERIAL_ECHOLNPGM(MSG_ZPROBE_ZOFFSET " " MSG_OK);
|
4796
|
|
- SERIAL_EOL;
|
|
4798
|
+ SERIAL_ECHOPGM(MSG_OK);
|
4797
|
4799
|
}
|
4798
|
4800
|
else {
|
4799
|
|
- SERIAL_ECHO_START;
|
4800
|
|
- SERIAL_ECHOPGM(MSG_ZPROBE_ZOFFSET);
|
4801
|
4801
|
SERIAL_ECHOPGM(MSG_Z_MIN);
|
4802
|
4802
|
SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MIN);
|
4803
|
4803
|
SERIAL_ECHOPGM(MSG_Z_MAX);
|
4804
|
4804
|
SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MAX);
|
4805
|
|
- SERIAL_EOL;
|
4806
|
4805
|
}
|
4807
|
4806
|
}
|
4808
|
4807
|
else {
|
4809
|
|
- SERIAL_ECHO_START;
|
4810
|
|
- SERIAL_ECHOPGM(MSG_ZPROBE_ZOFFSET " : ");
|
4811
|
|
- SERIAL_ECHO(zprobe_zoffset);
|
4812
|
|
- SERIAL_EOL;
|
|
4808
|
+ SERIAL_ECHOPAIR(": ", zprobe_zoffset);
|
4813
|
4809
|
}
|
|
4810
|
+
|
|
4811
|
+ SERIAL_EOL;
|
4814
|
4812
|
}
|
4815
|
4813
|
|
4816
|
4814
|
#endif // CUSTOM_M_CODE_SET_Z_PROBE_OFFSET
|