Fix UBL compilation warnings
This commit is contained in:
parent
ba9879f8fa
commit
586d50ff99
5 changed files with 46 additions and 18 deletions
|
|
@ -850,7 +850,7 @@ static bool drain_injected_commands_P() {
|
|||
*/
|
||||
void enqueue_and_echo_commands_P(const char * const pgcode) {
|
||||
injected_commands_P = pgcode;
|
||||
drain_injected_commands_P(); // first command executed asap (when possible)
|
||||
(void)drain_injected_commands_P(); // first command executed asap (when possible)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -896,6 +896,18 @@ bool enqueue_and_echo_command(const char* cmd, bool say_ok/*=false*/) {
|
|||
return false;
|
||||
}
|
||||
|
||||
#if HAS_QUEUE_NOW
|
||||
void enqueue_and_echo_command_now(const char* cmd, bool say_ok/*=false*/) {
|
||||
while (!enqueue_and_echo_command(cmd, say_ok)) idle();
|
||||
}
|
||||
#if HAS_LCD_QUEUE_NOW
|
||||
void enqueue_and_echo_commands_P_now(const char * const pgcode) {
|
||||
enqueue_and_echo_commands_P(pgcode);
|
||||
while (drain_injected_commands_P()) idle();
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
void setup_killpin() {
|
||||
#if HAS_KILL
|
||||
SET_INPUT_PULLUP(KILL_PIN);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue