G-code queue singleton, front injection (#14236)
This commit is contained in:
@@ -966,7 +966,7 @@ G29_TYPE GcodeSuite::G29() {
|
||||
#ifdef Z_PROBE_END_SCRIPT
|
||||
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("Z Probe End Script: ", Z_PROBE_END_SCRIPT);
|
||||
planner.synchronize();
|
||||
enqueue_and_echo_commands_P(PSTR(Z_PROBE_END_SCRIPT));
|
||||
queue.inject_P(PSTR(Z_PROBE_END_SCRIPT));
|
||||
#endif
|
||||
|
||||
// Auto Bed Leveling is complete! Enable if possible.
|
||||
|
@@ -85,7 +85,7 @@ void GcodeSuite::G29() {
|
||||
mbl.reset();
|
||||
mbl_probe_index = 0;
|
||||
if (!ui.wait_for_bl_move) {
|
||||
enqueue_and_echo_commands_P(PSTR("G28\nG29 S2"));
|
||||
queue.inject_P(PSTR("G28\nG29 S2"));
|
||||
return;
|
||||
}
|
||||
state = MeshNext;
|
||||
|
Reference in New Issue
Block a user