Ability to insert G-code in front of queue (#14229)
This commit is contained in:
committed by
Scott Lahteine
parent
293018f76c
commit
5ca8d51e12
@@ -83,8 +83,17 @@ void flush_and_request_resend();
|
||||
*/
|
||||
void ok_to_send();
|
||||
|
||||
#if ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||
/**
|
||||
* Insert in the front of queue, one or many commands to run from program memory.
|
||||
* Aborts the current queue, if any.
|
||||
* Note: drain_injected_commands_P() must be called repeatedly to drain the commands afterwards
|
||||
*/
|
||||
void enqueue_and_echo_commands_front_P(PGM_P const pgcode);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Record one or many commands to run from program memory.
|
||||
* Enqueue one or many commands to run from program memory.
|
||||
* Aborts the current queue, if any.
|
||||
* Note: drain_injected_commands_P() must be called repeatedly to drain the commands afterwards
|
||||
*/
|
||||
@@ -92,11 +101,13 @@ void enqueue_and_echo_commands_P(PGM_P const pgcode);
|
||||
|
||||
/**
|
||||
* Enqueue with Serial Echo
|
||||
* Return true on success
|
||||
*/
|
||||
bool enqueue_and_echo_command(const char* cmd);
|
||||
|
||||
#define HAS_LCD_QUEUE_NOW (ENABLED(MALYAN_LCD) || (HAS_LCD_MENU && ANY(AUTO_BED_LEVELING_UBL, PID_AUTOTUNE_MENU, ADVANCED_PAUSE_FEATURE)))
|
||||
#define HAS_QUEUE_NOW (ENABLED(SDSUPPORT) || HAS_LCD_QUEUE_NOW)
|
||||
#define HAS_QUEUE_FRONT ENABLED(ADVANCED_PAUSE_FEATURE)
|
||||
|
||||
#if HAS_QUEUE_NOW
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user