Wait before turning off PRINTER_EVENT_LEDS at print end (#10248)

This commit is contained in:
Scott Lahteine
2018-03-28 22:59:28 -05:00
committed by GitHub
parent 568ae094f4
commit 9e4c037cef
3 changed files with 27 additions and 4 deletions

View File

@@ -449,12 +449,19 @@ inline void get_serial_commands() {
LCD_MESSAGEPGM(MSG_INFO_COMPLETED_PRINTS);
leds.set_green();
#if HAS_RESUME_CONTINUE
enqueue_and_echo_commands_P(PSTR("M0")); // end of the queue!
gcode.lights_off_after_print = true;
enqueue_and_echo_commands_P(PSTR("M0 S"
#if ENABLED(NEWPANEL)
"1800"
#else
"60"
#endif
));
#else
safe_delay(1000);
safe_delay(2000);
leds.set_off();
#endif
leds.set_off();
#endif
#endif // PRINTER_EVENT_LEDS
card.checkautostart(true);
}
}