Преглед на файлове

Spaces not tabs in language.h.

Catch unlikely but possible error and head crash when using
Z_PROBE_REPEATABILITY_TEST
Chris Roadfeldt преди 9 години
родител
ревизия
916f59e35f
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1
    1
      Marlin/SanityCheck.h
  2. 1
    1
      Marlin/language.h

+ 1
- 1
Marlin/SanityCheck.h Целия файл

@@ -93,7 +93,7 @@
93 93
      * Require a Z Min pin
94 94
      */
95 95
     #if Z_MIN_PIN == -1
96
-      #if Z_PROBE_PIN == -1
96
+      #if Z_PROBE_PIN == -1 || (! defined (Z_PROBE_ENDSTOP) || defined (DISABLE_Z_PROBE_ENDSTOP)) // It's possible for someone to set a ping for the Z Probe, but not enable it.
97 97
         #ifdef Z_PROBE_REPEATABILITY_TEST
98 98
           #error You must have a Z_MIN or Z_PROBE endstop to enable Z_PROBE_REPEATABILITY_TEST.
99 99
         #else

+ 1
- 1
Marlin/language.h Целия файл

@@ -138,7 +138,7 @@
138 138
 #define MSG_Z_MIN                           "z_min: "
139 139
 #define MSG_Z_MAX                           "z_max: "
140 140
 #define MSG_Z2_MAX                          "z2_max: "
141
-#define MSG_Z_PROBE							"z_probe: "
141
+#define MSG_Z_PROBE                         "z_probe: "
142 142
 #define MSG_M119_REPORT                     "Reporting endstop status"
143 143
 #define MSG_ENDSTOP_HIT                     "TRIGGERED"
144 144
 #define MSG_ENDSTOP_OPEN                    "open"

Loading…
Отказ
Запис