Skip to content

Improvement: Set system status to started when print timer started (M75) #335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion Marlin/src/gcode/stats/M75-M78.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@
* M75: Start print timer
*/
void GcodeSuite::M75() {
print_job_timer.start();
SSTP_Event_t event;
event.id = EID_SYS_CTRL_REQ;
event.op_code = SYSCTL_OPC_START_WORK;
event.length = 0;
planner.synchronize();
SERIAL_ECHOPAIR("MC REQ START\n");
systemservice.ChangeSystemStatus(event);
#if ENABLED(EXTENSIBLE_UI)
ExtUI::onPrintTimerStarted();
#endif
Expand All @@ -58,6 +64,7 @@ void GcodeSuite::M76() {
* M77: Stop print timer
*/
void GcodeSuite::M77() {
systemservice.SetCurrentStatus(SYSTAT_IDLE);
print_job_timer.stop();
#if ENABLED(EXTENSIBLE_UI)
ExtUI::onPrintTimerStopped();
Expand Down