✨ M76 Host Pause Feature (#21738)
This commit is contained in:
committed by
Scott Lahteine
parent
51d954a4fd
commit
e62486a610
@ -3822,6 +3822,7 @@
|
||||
*/
|
||||
//#define HOST_ACTION_COMMANDS
|
||||
#if ENABLED(HOST_ACTION_COMMANDS)
|
||||
//#define HOST_PAUSE_M76
|
||||
//#define HOST_PROMPT_SUPPORT
|
||||
//#define HOST_START_MENU_ITEM // Add a menu item that tells the host to start
|
||||
#endif
|
||||
|
@ -23,6 +23,9 @@
|
||||
#include "../gcode.h"
|
||||
#include "../../module/printcounter.h"
|
||||
#include "../../lcd/marlinui.h"
|
||||
#if ENABLED(HOST_PAUSE_M76)
|
||||
#include "../../feature/host_actions.h"
|
||||
#endif
|
||||
|
||||
#include "../../MarlinCore.h" // for startOrResumeJob
|
||||
|
||||
@ -38,6 +41,7 @@ void GcodeSuite::M75() {
|
||||
*/
|
||||
void GcodeSuite::M76() {
|
||||
print_job_timer.pause();
|
||||
TERN_(HOST_PAUSE_M76, host_action_pause());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user