Add HOST_PROMPT_SUPPORT (#13039)

This commit is contained in:
InsanityAutomation
2019-02-12 16:55:47 -05:00
committed by Scott Lahteine
parent 0feeef2604
commit 7f1b69b0c8
189 changed files with 2076 additions and 3479 deletions

View File

@ -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();