🐛 Fix M_State_grbl when G29 calls G28

This commit is contained in:
Scott Lahteine
2022-03-02 16:04:17 -06:00
parent fd1a5fe366
commit b07a34eb6b
4 changed files with 36 additions and 18 deletions

View File

@@ -75,8 +75,6 @@ void GcodeSuite::G29() {
}
#endif
TERN_(FULL_REPORT_TO_HOST_FEATURE, set_and_report_grblstate(M_PROBE));
static int mbl_probe_index = -1;
MeshLevelingState state = (MeshLevelingState)parser.byteval('S', (int8_t)MeshReport);
@@ -85,6 +83,8 @@ void GcodeSuite::G29() {
return;
}
TERN_(FULL_REPORT_TO_HOST_FEATURE, set_and_report_grblstate(M_PROBE));
int8_t ix, iy;
ix = iy = 0;