Update EXTUI on MBL

This commit is contained in:
InsanityAutomation
2021-06-12 15:41:43 -04:00
parent 23ce68436a
commit e77f6d855b
+3 -1
View File
@@ -70,7 +70,7 @@ void GcodeSuite::G29() {
return;
}
int8_t ix, iy;
int8_t ix, iy = 0;
switch (state) {
case MeshReport:
@@ -89,6 +89,7 @@ void GcodeSuite::G29() {
if (!ui.wait_for_move) {
queue.inject_P(parser.seen_test('N') ? PSTR("G28" TERN(CAN_SET_LEVELING_AFTER_G28, "L0", "") "\nG29S2") : PSTR("G29S2"));
return;
TERN_(EXTENSIBLE_UI, ExtUI::onMeshLevelingStart());
}
state = MeshNext;
@@ -109,6 +110,7 @@ void GcodeSuite::G29() {
else {
// Save Z for the previous mesh position
mbl.set_zigzag_z(mbl_probe_index - 1, current_position.z);
TERN_(EXTENSIBLE_UI, ExtUI::onMeshUpdate(ix, iy, current_position.z));
SET_SOFT_ENDSTOP_LOOSE(false);
}
// If there's another point to sample, move there with optional lift.