From a1eb90d5c0570c5d777b5b113aca5dc45040d21f Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 12 Aug 2015 17:56:21 -0700 Subject: [PATCH] Save another 30 bytes in gcode_SET_Z_PROBE_OFFSET --- Marlin/Marlin_main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index dfc7167b83..fac6794f91 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -4795,21 +4795,20 @@ inline void gcode_M503() { float value = code_value(); if (Z_PROBE_OFFSET_RANGE_MIN <= value && value <= Z_PROBE_OFFSET_RANGE_MAX) { zprobe_zoffset = value; - SERIAL_ECHOLNPGM(MSG_OK); - SERIAL_EOL; + SERIAL_ECHOPGM(MSG_OK); } else { SERIAL_ECHOPGM(MSG_Z_MIN); SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MIN); SERIAL_ECHOPGM(MSG_Z_MAX); SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MAX); - SERIAL_EOL; } } else { SERIAL_ECHOPAIR(": ", zprobe_zoffset); - SERIAL_EOL; } + + SERIAL_EOL; } #endif // CUSTOM_M_CODE_SET_Z_PROBE_OFFSET