Expose DISABLE_M503 option as a test option

This commit is contained in:
Scott Lahteine
2017-07-01 21:30:46 -05:00
parent 3e78a01262
commit dcec7178d1
34 changed files with 78 additions and 73 deletions

View File

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