diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index c289b2b33..889b5eaa5 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -5873,6 +5873,47 @@ Sigma_Exit: break; } + /*! + ### M75 - Start the print job timer M75: Start the print job timer + */ + case 75: + { + print_job_timer.start(); + break; + } + + /*! + ### M76 - Pause the print job timer M76: Pause the print job timer + */ + case 76: + { + print_job_timer.pause(); + break; + } + + /*! + ### M77 - Stop the print job timer M77: Stop the print job timer + */ + case 77: + { + print_job_timer.stop(); + break; + } + + /*! + ### M78 - Show statistical information about the print jobs M78: Show statistical information about the print jobs + */ + case 78: + { + // @todo useful for maintenance notifications + SERIAL_ECHOPGM("STATS "); + SERIAL_ECHO(eeprom_read_dword((uint32_t *)EEPROM_TOTALTIME)); + SERIAL_ECHOPGM(" min "); + SERIAL_ECHO(eeprom_read_dword((uint32_t *)EEPROM_FILAMENTUSED)); + SERIAL_ECHOLNPGM(" cm."); + break; + } + /*! ### M79 - Start host timer M79: Start host timer Start the printer-host enable keep-alive timer. While the timer has not expired, the printer will enable host specific features.