|
|
@ -1282,7 +1282,7 @@ mesh_index_pair unified_bed_leveling::find_furthest_invalid_mesh_point() { |
|
|
|
|
|
|
|
static bool test_func(uint8_t i, uint8_t j, void *data) { |
|
|
|
find_closest_t *d = (find_closest_t*)data; |
|
|
|
if ( (d->type == (isnan(ubl.z_values[i][j]) ? INVALID : REAL)) |
|
|
|
if ( d->type == CLOSEST || d->type == (isnan(ubl.z_values[i][j]) ? INVALID : REAL) |
|
|
|
|| (d->type == SET_IN_BITMAP && !d->done_flags->marked(i, j)) |
|
|
|
) { |
|
|
|
// Found a Mesh Point of the specified type!
|
|
|
@ -1326,7 +1326,7 @@ mesh_index_pair unified_bed_leveling::find_closest_mesh_point_of_type(const Mesh |
|
|
|
float best_so_far = 99999.99f; |
|
|
|
|
|
|
|
GRID_LOOP(i, j) { |
|
|
|
if ( (type == (isnan(z_values[i][j]) ? INVALID : REAL)) |
|
|
|
if ( type == CLOSEST || type == (isnan(z_values[i][j]) ? INVALID : REAL) |
|
|
|
|| (type == SET_IN_BITMAP && !done_flags->marked(i, j)) |
|
|
|
) { |
|
|
|
// Found a Mesh Point of the specified type!
|
|
|
|