🚸 Update Ender3 V2/S1 Pro UI (#23878)
This commit is contained in:
committed by
Scott Lahteine
parent
b045c91f26
commit
eabeac29fd
@ -27,15 +27,27 @@
|
||||
#include "../gcode.h"
|
||||
#include "../../sd/cardreader.h"
|
||||
|
||||
#if ENABLED(DWIN_LCD_PROUI)
|
||||
#include "../../lcd/e3v2/proui/dwin.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* M524: Abort the current SD print job (started with M24)
|
||||
*/
|
||||
void GcodeSuite::M524() {
|
||||
|
||||
if (IS_SD_PRINTING())
|
||||
card.abortFilePrintSoon();
|
||||
else if (card.isMounted())
|
||||
card.closefile();
|
||||
#if ENABLED(DWIN_LCD_PROUI)
|
||||
|
||||
HMI_flag.abort_flag = true; // The LCD will handle it
|
||||
|
||||
#else
|
||||
|
||||
if (IS_SD_PRINTING())
|
||||
card.abortFilePrintSoon();
|
||||
else if (card.isMounted())
|
||||
card.closefile();
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user