From 91122277f45005293dd90d7f01de7a45b25a7701 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <sourcetree@thinkyhead.com>
Date: Wed, 12 Aug 2015 17:52:50 -0700
Subject: [PATCH] Reduce gcode_SET_Z_PROBE_OFFSET by 88 bytes

---
 Marlin/Marlin_main.cpp | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp
index 7c58ff7afd..dfc7167b83 100644
--- a/Marlin/Marlin_main.cpp
+++ b/Marlin/Marlin_main.cpp
@@ -4786,18 +4786,19 @@ inline void gcode_M503() {
 #ifdef CUSTOM_M_CODE_SET_Z_PROBE_OFFSET
 
   inline void gcode_SET_Z_PROBE_OFFSET() {
-    float value;
+
+    SERIAL_ECHO_START;
+    SERIAL_ECHOPGM(MSG_ZPROBE_ZOFFSET);
+    SERIAL_CHAR(' ');
+
     if (code_seen('Z')) {
-      value = code_value();
+      float value = code_value();
       if (Z_PROBE_OFFSET_RANGE_MIN <= value && value <= Z_PROBE_OFFSET_RANGE_MAX) {
         zprobe_zoffset = value;
-        SERIAL_ECHO_START;
-        SERIAL_ECHOLNPGM(MSG_ZPROBE_ZOFFSET " " MSG_OK);
+        SERIAL_ECHOLNPGM(MSG_OK);
         SERIAL_EOL;
       }
       else {
-        SERIAL_ECHO_START;
-        SERIAL_ECHOPGM(MSG_ZPROBE_ZOFFSET);
         SERIAL_ECHOPGM(MSG_Z_MIN);
         SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MIN);
         SERIAL_ECHOPGM(MSG_Z_MAX);
@@ -4806,9 +4807,7 @@ inline void gcode_M503() {
       }
     }
     else {
-      SERIAL_ECHO_START;
-      SERIAL_ECHOPGM(MSG_ZPROBE_ZOFFSET " : ");
-      SERIAL_ECHO(zprobe_zoffset);
+      SERIAL_ECHOPAIR(": ", zprobe_zoffset);
       SERIAL_EOL;
     }
   }