Fix 3x3 mbl condition

This commit is contained in:
Alex Voinea 2024-02-02 14:45:30 +01:00
parent 6682237c7a
commit bacb0b1b07
No known key found for this signature in database
GPG Key ID: 37EDFD565CB33BAD
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