Revert default state of endstops in M502

This commit is contained in:
Scott Lahteine 2016-07-14 16:12:20 -07:00
parent 0fcd3706dd
commit 69d6016941

View File

@ -127,6 +127,7 @@
*/
#include "Marlin.h"
#include "language.h"
#include "endstops.h"
#include "planner.h"
#include "temperature.h"
#include "ultralcd.h"
@ -660,6 +661,14 @@ void Config_ResetDefault() {
for (uint8_t q = 0; q < COUNT(filament_size); q++)
filament_size[q] = DEFAULT_NOMINAL_FILAMENT_DIA;
endstops.enable_globally(
#if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT)
(true)
#else
(false)
#endif
);
Config_Postprocess();
SERIAL_ECHO_START;