Refactor PRINTER_EVENT_LEDS, apply to M303 (#12038)
Co-Authored-By: Giuliano Zaro <gmagician@users.noreply.github.com>
This commit is contained in:
committed by
Scott Lahteine
parent
d8d76cd2ba
commit
d43d4e4219
@ -33,8 +33,8 @@
|
||||
#include "../module/temperature.h"
|
||||
#include "../Marlin.h"
|
||||
|
||||
#if HAS_COLOR_LEDS
|
||||
#include "../feature/leds/leds.h"
|
||||
#if ENABLED(PRINTER_EVENT_LEDS)
|
||||
#include "../feature/leds/printer_event_leds.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||
@ -484,10 +484,8 @@ inline void get_serial_commands() {
|
||||
else {
|
||||
SERIAL_PROTOCOLLNPGM(MSG_FILE_PRINTED);
|
||||
#if ENABLED(PRINTER_EVENT_LEDS)
|
||||
LCD_MESSAGEPGM(MSG_INFO_COMPLETED_PRINTS);
|
||||
leds.set_green();
|
||||
printerEventLEDs.onPrintCompleted();
|
||||
#if HAS_RESUME_CONTINUE
|
||||
gcode.lights_off_after_print = true;
|
||||
enqueue_and_echo_commands_P(PSTR("M0 S"
|
||||
#if ENABLED(NEWPANEL)
|
||||
"1800"
|
||||
@ -495,9 +493,6 @@ inline void get_serial_commands() {
|
||||
"60"
|
||||
#endif
|
||||
));
|
||||
#else
|
||||
safe_delay(2000);
|
||||
leds.set_off();
|
||||
#endif
|
||||
#endif // PRINTER_EVENT_LEDS
|
||||
}
|
||||
|
Reference in New Issue
Block a user