Merge pull request #4586 from leptun/fix_3x3_mbl

Fix 3x3 mbl condition
This commit is contained in:
3d-gussner 2024-02-03 12:57:16 +01:00 committed by GitHub
commit c999c2948e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -2902,10 +2902,12 @@ static void gcode_G80()
float x_pos = BED_X(ix);
float y_pos = BED_Y(iy);
if ((nMeasPoints == 3) && !isOn3x3Mesh) {
mesh_point++;
mbl.set_z(ix, iy, NAN);
continue; //skip
if (nMeasPoints == 3) {
if (!isOn3x3Mesh) {
mesh_point++;
mbl.set_z(ix, iy, NAN);
continue; //skip
}
} else if ((x_pos < area_min_x || x_pos > area_max_x || y_pos < area_min_y || y_pos > area_max_y) && (!isOn3x3Mesh || has_z)) {
mesh_point++;
continue; //skip