Extensible user interface API (#11193)
This commit is contained in:
committed by
Scott Lahteine
parent
ee253991d4
commit
906a24fa81
@ -23,20 +23,39 @@
|
||||
#include "../gcode.h"
|
||||
#include "../../module/printcounter.h"
|
||||
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
#include "../../lcd/extensible_ui/ui_api.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* M75: Start print timer
|
||||
*/
|
||||
void GcodeSuite::M75() { print_job_timer.start(); }
|
||||
void GcodeSuite::M75() {
|
||||
print_job_timer.start();
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
UI::onPrintTimerStarted();
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* M76: Pause print timer
|
||||
*/
|
||||
void GcodeSuite::M76() { print_job_timer.pause(); }
|
||||
void GcodeSuite::M76() {
|
||||
print_job_timer.pause();
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
UI::onPrintTimerPaused();
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* M77: Stop print timer
|
||||
*/
|
||||
void GcodeSuite::M77() { print_job_timer.stop(); }
|
||||
void GcodeSuite::M77() {
|
||||
print_job_timer.stop();
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
UI::onPrintTimerStopped();
|
||||
#endif
|
||||
}
|
||||
|
||||
#if ENABLED(PRINTCOUNTER)
|
||||
|
||||
|
Reference in New Issue
Block a user