Internal G29N for G28+G29 (#20800)

This commit is contained in:
Scott Lahteine
2021-01-17 12:08:40 -06:00
committed by GitHub
parent fec58157ac
commit bb597dcf66
12 changed files with 24 additions and 18 deletions

View File

@ -85,7 +85,7 @@ void GcodeSuite::G29() {
mbl.reset();
mbl_probe_index = 0;
if (!ui.wait_for_move) {
queue.inject_P(PSTR("G28\nG29 S2"));
queue.inject_P(parser.seen('N') ? PSTR("G28" TERN(G28_L0_ENSURES_LEVELING_OFF, "L0", "") "\nG29S2") : PSTR("G29S2"));
return;
}
state = MeshNext;