|
|
|
@ -484,7 +484,7 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (parser.seen('B')) {
|
|
|
|
|
g29_card_thickness = parser.has_value() ? parser.value_float() : measure_business_card_thickness(float(Z_CLEARANCE_BETWEEN_PROBES));
|
|
|
|
|
g29_card_thickness = parser.has_value() ? parser.value_float() : measure_business_card_thickness();
|
|
|
|
|
if (ABS(g29_card_thickness) > 1.5f) {
|
|
|
|
|
SERIAL_ECHOLNPGM("?Error in Business Card measurement.");
|
|
|
|
|
return;
|
|
|
|
@ -837,11 +837,11 @@
|
|
|
|
|
|
|
|
|
|
static void echo_and_take_a_measurement() { SERIAL_ECHOLNPGM(" and take a measurement."); }
|
|
|
|
|
|
|
|
|
|
float unified_bed_leveling::measure_business_card_thickness(float in_height) {
|
|
|
|
|
float unified_bed_leveling::measure_business_card_thickness() {
|
|
|
|
|
ui.capture();
|
|
|
|
|
save_ubl_active_state_and_disable(); // Disable bed level correction for probing
|
|
|
|
|
|
|
|
|
|
do_blocking_move_to(0.5f * (MESH_MAX_X - (MESH_MIN_X)), 0.5f * (MESH_MAX_Y - (MESH_MIN_Y)), in_height);
|
|
|
|
|
do_blocking_move_to(0.5f * (MESH_MAX_X - (MESH_MIN_X)), 0.5f * (MESH_MAX_Y - (MESH_MIN_Y)), MANUAL_PROBE_START_Z);
|
|
|
|
|
//, _MIN(planner.settings.max_feedrate_mm_s[X_AXIS], planner.settings.max_feedrate_mm_s[Y_AXIS]) * 0.5f);
|
|
|
|
|
planner.synchronize();
|
|
|
|
|
|
|
|
|
|