Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
committed by
Scott Lahteine
parent
54416f780d
commit
6cf2cf7bd4
@ -29,11 +29,19 @@
|
||||
|
||||
#include "../../MarlinCore.h" // for startOrResumeJob
|
||||
|
||||
#if ENABLED(DWIN_CREALITY_LCD_ENHANCED)
|
||||
#include "../../lcd/e3v2/enhanced/dwin.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* M75: Start print timer
|
||||
*/
|
||||
void GcodeSuite::M75() {
|
||||
startOrResumeJob();
|
||||
#if ENABLED(DWIN_CREALITY_LCD_ENHANCED)
|
||||
DWIN_Print_Header(parser.string_arg && parser.string_arg[0] ? parser.string_arg : GET_TEXT(MSG_HOST_START_PRINT));
|
||||
DWIN_Print_Started(false);
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
@ -49,29 +57,30 @@ void GcodeSuite::M76() {
|
||||
*/
|
||||
void GcodeSuite::M77() {
|
||||
print_job_timer.stop();
|
||||
TERN_(DWIN_CREALITY_LCD_ENHANCED, DWIN_Print_Finished());
|
||||
}
|
||||
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
|
||||
/**
|
||||
/**
|
||||
* M78: Show print statistics
|
||||
*/
|
||||
void GcodeSuite::M78() {
|
||||
if (parser.intval('S') == 78) { // "M78 S78" will reset the statistics
|
||||
void GcodeSuite::M78() {
|
||||
if (parser.intval('S') == 78) { // "M78 S78" will reset the statistics
|
||||
print_job_timer.initStats();
|
||||
ui.reset_status();
|
||||
return;
|
||||
return;
|
||||
}
|
||||
|
||||
#if HAS_SERVICE_INTERVALS
|
||||
if (parser.seenval('R')) {
|
||||
if (parser.seenval('R')) {
|
||||
print_job_timer.resetServiceInterval(parser.value_int());
|
||||
ui.reset_status();
|
||||
return;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
print_job_timer.showStats();
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PRINTCOUNTER
|
||||
|
Reference in New Issue
Block a user