|
|
@ -9279,12 +9279,14 @@ inline void gcode_M502() {
|
|
|
|
(void)settings.reset();
|
|
|
|
(void)settings.reset();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
#if DISABLED(DISABLE_M503)
|
|
|
|
|
|
|
|
/**
|
|
|
|
* M503: print settings currently in memory
|
|
|
|
* M503: print settings currently in memory
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline void gcode_M503() {
|
|
|
|
inline void gcode_M503() {
|
|
|
|
(void)settings.report(!parser.boolval('S', true));
|
|
|
|
(void)settings.report(!parser.boolval('S', true));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
|
|
|
|
#if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
|
|
|
|
|
|
|
|
|
|
|
@ -11022,9 +11024,12 @@ void process_next_command() {
|
|
|
|
case 502: // M502: Revert to default settings
|
|
|
|
case 502: // M502: Revert to default settings
|
|
|
|
gcode_M502();
|
|
|
|
gcode_M502();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if DISABLED(DISABLE_M503)
|
|
|
|
case 503: // M503: print settings currently in memory
|
|
|
|
case 503: // M503: print settings currently in memory
|
|
|
|
gcode_M503();
|
|
|
|
gcode_M503();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
|
|
|
|
#if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
|
|
|
|
case 540: // M540: Set abort on endstop hit for SD printing
|
|
|
|
case 540: // M540: Set abort on endstop hit for SD printing
|
|
|
|