Browse Source

use existing strings

Gabe Rosenhouse 10 years ago
parent
commit
27a7cf9fcf
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      Marlin/Marlin_main.cpp

+ 5
- 4
Marlin/Marlin_main.cpp View File

2731
         {
2731
         {
2732
           zprobe_zoffset = -value; // compare w/ line 278 of ConfigurationStore.cpp
2732
           zprobe_zoffset = -value; // compare w/ line 278 of ConfigurationStore.cpp
2733
           SERIAL_ECHO_START;
2733
           SERIAL_ECHO_START;
2734
-          SERIAL_ECHOLNPGM("Z probe offset has been set");
2734
+          SERIAL_ECHOLNPGM(MSG_ZPROBE_ZOFFSET " " MSG_OK);
2735
           SERIAL_PROTOCOLLN("");
2735
           SERIAL_PROTOCOLLN("");
2736
         }
2736
         }
2737
         else
2737
         else
2738
         {
2738
         {
2739
           SERIAL_ECHO_START;
2739
           SERIAL_ECHO_START;
2740
-          SERIAL_ECHOPGM("Invalid z-probe value.  Must be between ");
2740
+          SERIAL_ECHOPGM(MSG_ZPROBE_ZOFFSET);
2741
+          SERIAL_ECHOPGM(MSG_Z_MIN);
2741
           SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MIN);
2742
           SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MIN);
2742
-          SERIAL_ECHOPGM(" and ");
2743
+          SERIAL_ECHOPGM(MSG_Z_MAX);
2743
           SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MAX);
2744
           SERIAL_ECHO(Z_PROBE_OFFSET_RANGE_MAX);
2744
           SERIAL_PROTOCOLLN("");
2745
           SERIAL_PROTOCOLLN("");
2745
         }
2746
         }
2747
       else
2748
       else
2748
       {
2749
       {
2749
           SERIAL_ECHO_START;
2750
           SERIAL_ECHO_START;
2750
-          SERIAL_ECHOLNPGM("Z probe offset is currently ");
2751
+          SERIAL_ECHOLNPGM(MSG_ZPROBE_ZOFFSET " : ");
2751
           SERIAL_ECHO(-zprobe_zoffset);
2752
           SERIAL_ECHO(-zprobe_zoffset);
2752
           SERIAL_PROTOCOLLN("");
2753
           SERIAL_PROTOCOLLN("");
2753
       }
2754
       }

Loading…
Cancel
Save