Fix up enqueue now functions
…and apply to MALYAN_LCD.
This commit is contained in:
@ -176,14 +176,14 @@ void enqueue_and_echo_commands_P(const char * const pgcode) {
|
||||
/**
|
||||
* Enqueue and return only when commands are actually enqueued
|
||||
*/
|
||||
void enqueue_and_echo_command_now(const char* cmd, bool say_ok/*=false*/) {
|
||||
while (!enqueue_and_echo_command(cmd, say_ok)) idle();
|
||||
void enqueue_and_echo_command_now(const char* cmd) {
|
||||
while (!enqueue_and_echo_command(cmd)) idle();
|
||||
}
|
||||
#if HAS_LCD_QUEUE_NOW
|
||||
/**
|
||||
* Enqueue from program memory and return only when commands are actually enqueued
|
||||
*/
|
||||
void enqueue_and_echo_commands_P_now(const char * const pgcode) {
|
||||
void enqueue_and_echo_commands_now_P(const char * const pgcode) {
|
||||
enqueue_and_echo_commands_P(pgcode);
|
||||
while (drain_injected_commands_P()) idle();
|
||||
}
|
||||
|
@ -97,19 +97,19 @@ void enqueue_and_echo_commands_P(const char * const pgcode);
|
||||
*/
|
||||
bool enqueue_and_echo_command(const char* cmd, bool say_ok=false);
|
||||
|
||||
#define HAS_LCD_QUEUE_NOW (ENABLED(ULTIPANEL) && (ENABLED(AUTO_BED_LEVELING_UBL) || ENABLED(PID_AUTOTUNE_MENU) || ENABLED(ADVANCED_PAUSE_FEATURE)))
|
||||
#define HAS_LCD_QUEUE_NOW (ENABLED(MALYAN_LCD) || (ENABLED(ULTIPANEL) && (ENABLED(AUTO_BED_LEVELING_UBL) || ENABLED(PID_AUTOTUNE_MENU) || ENABLED(ADVANCED_PAUSE_FEATURE))))
|
||||
#define HAS_QUEUE_NOW (ENABLED(SDSUPPORT) || HAS_LCD_QUEUE_NOW)
|
||||
|
||||
#if HAS_QUEUE_NOW
|
||||
/**
|
||||
* Enqueue and return only when commands are actually enqueued
|
||||
*/
|
||||
void enqueue_and_echo_command_now(const char* cmd, bool say_ok=false);
|
||||
void enqueue_and_echo_command_now(const char* cmd);
|
||||
#if HAS_LCD_QUEUE_NOW
|
||||
/**
|
||||
* Enqueue from program memory and return only when commands are actually enqueued
|
||||
*/
|
||||
void enqueue_and_echo_commands_P_now(const char * const cmd);
|
||||
void enqueue_and_echo_commands_now_P(const char * const cmd);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user