|
|
@ -4248,30 +4248,27 @@ inline void gcode_M42() {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* M75: Start print timer
|
|
|
|
* M75: Start print timer
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline void gcode_M75() {
|
|
|
|
inline void gcode_M75() { print_job_timer.start(); }
|
|
|
|
print_job_timer.start();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* M76: Pause print timer
|
|
|
|
* M76: Pause print timer
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline void gcode_M76() {
|
|
|
|
inline void gcode_M76() { print_job_timer.pause(); }
|
|
|
|
print_job_timer.pause();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* M77: Stop print timer
|
|
|
|
* M77: Stop print timer
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline void gcode_M77() {
|
|
|
|
inline void gcode_M77() { print_job_timer.stop(); }
|
|
|
|
print_job_timer.stop();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(PRINTCOUNTER)
|
|
|
|
#if ENABLED(PRINTCOUNTER)
|
|
|
|
/*+
|
|
|
|
/*+
|
|
|
|
* M78: Show print statistics
|
|
|
|
* M78: Show print statistics
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
inline void gcode_M78() {
|
|
|
|
inline void gcode_M78() {
|
|
|
|
print_job_timer.showStats();
|
|
|
|
// "M78 S78" will reset the statistics
|
|
|
|
|
|
|
|
if (code_seen('S') && code_value_short() == 78)
|
|
|
|
|
|
|
|
print_job_timer.initStats();
|
|
|
|
|
|
|
|
else print_job_timer.showStats();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
@ -4290,6 +4287,7 @@ inline void gcode_M104() {
|
|
|
|
thermalManager.setTargetHotend(temp == 0.0 ? 0.0 : temp + duplicate_extruder_temp_offset, 1);
|
|
|
|
thermalManager.setTargetHotend(temp == 0.0 ? 0.0 : temp + duplicate_extruder_temp_offset, 1);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(PRINTJOB_TIMER_AUTOSTART)
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* We use half EXTRUDE_MINTEMP here to allow nozzles to be put into hot
|
|
|
|
* We use half EXTRUDE_MINTEMP here to allow nozzles to be put into hot
|
|
|
|
* stand by mode, for instance in a dual extruder setup, without affecting
|
|
|
|
* stand by mode, for instance in a dual extruder setup, without affecting
|
|
|
@ -4305,6 +4303,7 @@ inline void gcode_M104() {
|
|
|
|
* will not restart.
|
|
|
|
* will not restart.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
else print_job_timer.start();
|
|
|
|
else print_job_timer.start();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
if (temp > thermalManager.degHotend(target_extruder)) LCD_MESSAGEPGM(MSG_HEATING);
|
|
|
|
if (temp > thermalManager.degHotend(target_extruder)) LCD_MESSAGEPGM(MSG_HEATING);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -4443,6 +4442,7 @@ inline void gcode_M109() {
|
|
|
|
thermalManager.setTargetHotend(temp == 0.0 ? 0.0 : temp + duplicate_extruder_temp_offset, 1);
|
|
|
|
thermalManager.setTargetHotend(temp == 0.0 ? 0.0 : temp + duplicate_extruder_temp_offset, 1);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(PRINTJOB_TIMER_AUTOSTART)
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* We use half EXTRUDE_MINTEMP here to allow nozzles to be put into hot
|
|
|
|
* We use half EXTRUDE_MINTEMP here to allow nozzles to be put into hot
|
|
|
|
* stand by mode, for instance in a dual extruder setup, without affecting
|
|
|
|
* stand by mode, for instance in a dual extruder setup, without affecting
|
|
|
@ -4458,6 +4458,7 @@ inline void gcode_M109() {
|
|
|
|
* will not restart.
|
|
|
|
* will not restart.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
else print_job_timer.start();
|
|
|
|
else print_job_timer.start();
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
if (temp > thermalManager.degHotend(target_extruder)) LCD_MESSAGEPGM(MSG_HEATING);
|
|
|
|
if (temp > thermalManager.degHotend(target_extruder)) LCD_MESSAGEPGM(MSG_HEATING);
|
|
|
|
}
|
|
|
|
}
|
|
|
|