Add HOST_PROMPT_SUPPORT (#13039)
This commit is contained in:
committed by
Scott Lahteine
parent
0feeef2604
commit
7f1b69b0c8
@ -31,9 +31,17 @@
|
||||
* M412: Enable / Disable filament runout detection
|
||||
*/
|
||||
void GcodeSuite::M412() {
|
||||
if (parser.seen('S')) {
|
||||
runout.reset();
|
||||
runout.enabled = parser.value_bool();
|
||||
if (parser.seen("HS"
|
||||
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||
"R"
|
||||
#endif
|
||||
)) {
|
||||
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||
if (parser.seen('H')) runout.host_handling = parser.value_bool();
|
||||
#endif
|
||||
const bool seenR = parser.seen('R'), seenS = parser.seen('S');
|
||||
if (seenR || seenS) runout.reset();
|
||||
if (seenS) runout.enabled = parser.value_bool();
|
||||
}
|
||||
else {
|
||||
SERIAL_ECHO_START();
|
||||
|
Reference in New Issue
Block a user