Revert default state of endstops in M502
This commit is contained in:
parent
0fcd3706dd
commit
69d6016941
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue