G-code queue singleton, front injection (#14236)

This commit is contained in:
Scott Lahteine
2019-06-19 00:00:19 -05:00
committed by GitHub
parent 75aeb41ab7
commit 4c872a01f2
32 changed files with 337 additions and 356 deletions

View File

@ -777,10 +777,10 @@ namespace ExtUI {
float getFeedrate_percent() { return feedrate_percentage; }
void enqueueCommands_P(PGM_P const gcode) {
enqueue_and_echo_commands_P(gcode);
queue.inject_P(gcode);
}
bool commandsInQueue() { return (planner.movesplanned() || commands_in_queue); }
bool commandsInQueue() { return (planner.movesplanned() || queue.length); }
bool isAxisPositionKnown(const axis_t axis) {
return TEST(axis_known_position, axis);