|
@@ -790,9 +790,13 @@
|
790
|
790
|
|
791
|
791
|
} while (best.pos.x >= 0 && --count);
|
792
|
792
|
|
793
|
|
- ui.release();
|
|
793
|
+ #if HAS_LCD_MENU
|
|
794
|
+ ui.release();
|
|
795
|
+ #endif
|
794
|
796
|
STOW_PROBE(); // Release UI during stow to allow for PAUSE_BEFORE_DEPLOY_STOW
|
795
|
|
- ui.capture();
|
|
797
|
+ #if HAS_LCD_MENU
|
|
798
|
+ ui.capture();
|
|
799
|
+ #endif
|
796
|
800
|
|
797
|
801
|
#ifdef Z_AFTER_PROBING
|
798
|
802
|
move_z_after_probing();
|
|
@@ -851,7 +855,9 @@
|
851
|
855
|
static void echo_and_take_a_measurement() { SERIAL_ECHOLNPGM(" and take a measurement."); }
|
852
|
856
|
|
853
|
857
|
float unified_bed_leveling::measure_business_card_thickness(float in_height) {
|
854
|
|
- ui.capture();
|
|
858
|
+ #if HAS_LCD_MENU
|
|
859
|
+ ui.capture();
|
|
860
|
+ #endif
|
855
|
861
|
save_ubl_active_state_and_disable(); // Disable bed level correction for probing
|
856
|
862
|
|
857
|
863
|
do_blocking_move_to(0.5f * (MESH_MAX_X - (MESH_MIN_X)), 0.5f * (MESH_MAX_Y - (MESH_MIN_Y)), in_height);
|
|
@@ -890,8 +896,9 @@
|
890
|
896
|
}
|
891
|
897
|
|
892
|
898
|
void unified_bed_leveling::manually_probe_remaining_mesh(const xy_pos_t &pos, const float &z_clearance, const float &thick, const bool do_ubl_mesh_map) {
|
893
|
|
-
|
894
|
|
- ui.capture();
|
|
899
|
+ #if HAS_LCD_MENU
|
|
900
|
+ ui.capture();
|
|
901
|
+ #endif
|
895
|
902
|
|
896
|
903
|
save_ubl_active_state_and_disable(); // No bed level correction so only raw data is obtained
|
897
|
904
|
do_blocking_move_to_xy_z(current_position, z_clearance);
|
|
@@ -919,7 +926,9 @@
|
919
|
926
|
do_blocking_move_to_z(z_clearance);
|
920
|
927
|
|
921
|
928
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
922
|
|
- ui.capture();
|
|
929
|
+ #if HAS_LCD_MENU
|
|
930
|
+ ui.capture();
|
|
931
|
+ #endif
|
923
|
932
|
|
924
|
933
|
if (do_ubl_mesh_map) display_map(g29_map_type); // show user where we're probing
|
925
|
934
|
|
|
@@ -986,8 +995,9 @@
|
986
|
995
|
save_ubl_active_state_and_disable();
|
987
|
996
|
|
988
|
997
|
LCD_MESSAGEPGM(MSG_UBL_FINE_TUNE_MESH);
|
989
|
|
- ui.capture(); // Take over control of the LCD encoder
|
990
|
|
-
|
|
998
|
+ #if HAS_LCD_MENU
|
|
999
|
+ ui.capture(); // Take over control of the LCD encoder
|
|
1000
|
+ #endif
|
991
|
1001
|
do_blocking_move_to_xy_z(pos, Z_CLEARANCE_BETWEEN_PROBES); // Move to the given XY with probe clearance
|
992
|
1002
|
|
993
|
1003
|
#if ENABLED(UBL_MESH_EDIT_MOVES_Z)
|