|
@@ -338,7 +338,7 @@
|
338
|
338
|
}
|
339
|
339
|
z_values[cpos.x][cpos.y] = NAN;
|
340
|
340
|
#if ENABLED(EXTENSIBLE_UI)
|
341
|
|
- ExtUI::onMeshUpdate(closest, 0);
|
|
341
|
+ ExtUI::onMeshUpdate(cpos, 0.0f);
|
342
|
342
|
#endif
|
343
|
343
|
cnt++;
|
344
|
344
|
}
|
|
@@ -541,7 +541,7 @@
|
541
|
541
|
else {
|
542
|
542
|
z_values[cpos.x][cpos.y] = g29_constant;
|
543
|
543
|
#if ENABLED(EXTENSIBLE_UI)
|
544
|
|
- ExtUI::onMeshUpdate(closest, g29_constant);
|
|
544
|
+ ExtUI::onMeshUpdate(cpos, g29_constant);
|
545
|
545
|
#endif
|
546
|
546
|
}
|
547
|
547
|
}
|
|
@@ -783,7 +783,7 @@
|
783
|
783
|
);
|
784
|
784
|
z_values[best.pos.x][best.pos.y] = measured_z;
|
785
|
785
|
#if ENABLED(EXTENSIBLE_UI)
|
786
|
|
- ExtUI::onMeshUpdate(best, measured_z);
|
|
786
|
+ ExtUI::onMeshUpdate(best.pos, measured_z);
|
787
|
787
|
#endif
|
788
|
788
|
}
|
789
|
789
|
SERIAL_FLUSH(); // Prevent host M105 buffer overrun.
|
|
@@ -1335,7 +1335,7 @@
|
1335
|
1335
|
if (!isnan(v2)) {
|
1336
|
1336
|
z_values[x][y] = v1 < v2 ? v1 : v1 + v1 - v2;
|
1337
|
1337
|
#if ENABLED(EXTENSIBLE_UI)
|
1338
|
|
- ExtUI::onMeshUpdate(x, y, z_values[pos.x][pos.y]);
|
|
1338
|
+ ExtUI::onMeshUpdate(x, y, z_values[x][y]);
|
1339
|
1339
|
#endif
|
1340
|
1340
|
return true;
|
1341
|
1341
|
}
|