Add HAS_EXTRA_ENDSTOPS macro

This commit is contained in:
Scott Lahteine
2019-02-06 04:59:22 -06:00
parent 3c49396370
commit 1bd9a63049
9 changed files with 14 additions and 13 deletions

View File

@ -22,7 +22,7 @@
#include "../../inc/MarlinConfig.h"
#if ENABLED(DELTA) || ENABLED(X_DUAL_ENDSTOPS) || ENABLED(Y_DUAL_ENDSTOPS) || Z_MULTI_ENDSTOPS
#if ENABLED(DELTA) || HAS_EXTRA_ENDSTOPS
#include "../gcode.h"
@ -59,7 +59,7 @@
#endif
}
#elif ENABLED(X_DUAL_ENDSTOPS) || ENABLED(Y_DUAL_ENDSTOPS) || Z_MULTI_ENDSTOPS
#elif HAS_EXTRA_ENDSTOPS
#include "../../module/endstops.h"
@ -107,6 +107,6 @@
}
}
#endif // X_DUAL_ENDSTOPS || Y_DUAL_ENDSTOPS || Z_DUAL_ENDSTOPS
#endif // HAS_EXTRA_ENDSTOPS
#endif // DELTA || X_DUAL_ENDSTOPS || Y_DUAL_ENDSTOPS || Z_DUAL_ENDSTOPS
#endif // DELTA || HAS_EXTRA_ENDSTOPS

View File

@ -759,7 +759,7 @@ private:
static void M665();
#endif
#if ENABLED(DELTA) || ENABLED(X_DUAL_ENDSTOPS) || ENABLED(Y_DUAL_ENDSTOPS) || Z_MULTI_ENDSTOPS
#if ENABLED(DELTA) || HAS_EXTRA_ENDSTOPS
static void M666();
#endif

View File

@ -635,7 +635,7 @@ inline void get_serial_commands() {
gcode_LastN = gcode_N;
}
#if ENABLED(SDSUPPORT)
// Pronterface "M29" and "M29 " has no line number
// Pronterface "M29" and "M29 " has no line number
else if (card.flag.saving && !is_M29(command))
return gcode_line_error(PSTR(MSG_ERR_NO_CHECKSUM), i);
#endif