|
@@ -367,13 +367,13 @@ void unified_bed_leveling::G29() {
|
367
|
367
|
|
368
|
368
|
case 1:
|
369
|
369
|
LOOP_L_N(x, GRID_MAX_POINTS_X) { // Create a diagonal line several Mesh cells thick that is raised
|
|
370
|
+ const uint8_t x2 = x + (x < (GRID_MAX_POINTS_Y) - 1 ? 1 : -1);
|
370
|
371
|
z_values[x][x] += 9.999f;
|
371
|
|
- z_values[x][x + (x < (GRID_MAX_POINTS_Y) - 1) ? 1 : -1] += 9.999f; // We want the altered line several mesh points thick
|
|
372
|
+ z_values[x][x2] += 9.999f; // We want the altered line several mesh points thick
|
372
|
373
|
#if ENABLED(EXTENSIBLE_UI)
|
373
|
374
|
ExtUI::onMeshUpdate(x, x, z_values[x][x]);
|
374
|
|
- ExtUI::onMeshUpdate(x, (x + (x < (GRID_MAX_POINTS_Y) - 1) ? 1 : -1), z_values[x][x + (x < (GRID_MAX_POINTS_Y) - 1) ? 1 : -1]);
|
|
375
|
+ ExtUI::onMeshUpdate(x, (x2), z_values[x][x2]);
|
375
|
376
|
#endif
|
376
|
|
-
|
377
|
377
|
}
|
378
|
378
|
break;
|
379
|
379
|
|