|
@@ -40,8 +40,6 @@
|
40
|
40
|
extern float destination[XYZE], current_position[XYZE];
|
41
|
41
|
|
42
|
42
|
void lcd_return_to_status();
|
43
|
|
- bool lcd_clicked();
|
44
|
|
- void lcd_implementation_clear();
|
45
|
43
|
void lcd_mesh_edit_setup(float initial);
|
46
|
44
|
float lcd_mesh_edit();
|
47
|
45
|
void lcd_z_offset_edit_setup(float);
|
|
@@ -54,12 +52,6 @@
|
54
|
52
|
#define SIZE_OF_LITTLE_RAISE 1
|
55
|
53
|
#define BIG_RAISE_NOT_NEEDED 0
|
56
|
54
|
|
57
|
|
- extern void lcd_status_screen();
|
58
|
|
- typedef void (*screenFunc_t)();
|
59
|
|
- extern void lcd_goto_screen(screenFunc_t screen, const uint32_t encoder = 0);
|
60
|
|
- extern void lcd_setstatus(const char* message, const bool persist);
|
61
|
|
- extern void lcd_setstatusPGM(const char* message, const int8_t level);
|
62
|
|
-
|
63
|
55
|
int unified_bed_leveling::g29_verbose_level,
|
64
|
56
|
unified_bed_leveling::g29_phase_value,
|
65
|
57
|
unified_bed_leveling::g29_repetition_cnt,
|
|
@@ -662,7 +654,7 @@
|
662
|
654
|
do_blocking_move_to_z(measured_z); // Get close to the bed, but leave some space so we don't damage anything
|
663
|
655
|
// The user is not going to be locking in a new Z-Offset very often so
|
664
|
656
|
// it won't be that painful to spin the Encoder Wheel for 1.5mm
|
665
|
|
- lcd_implementation_clear();
|
|
657
|
+ lcd_refresh();
|
666
|
658
|
lcd_z_offset_edit_setup(measured_z);
|
667
|
659
|
|
668
|
660
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
|
@@ -698,7 +690,7 @@
|
698
|
690
|
|
699
|
691
|
state.z_offset = measured_z;
|
700
|
692
|
|
701
|
|
- lcd_implementation_clear();
|
|
693
|
+ lcd_refresh();
|
702
|
694
|
restore_ubl_active_state_and_leave();
|
703
|
695
|
}
|
704
|
696
|
}
|
|
@@ -940,7 +932,7 @@
|
940
|
932
|
|
941
|
933
|
SERIAL_PROTOCOLPGM("Place shim under nozzle");
|
942
|
934
|
LCD_MESSAGEPGM("Place shim & measure"); // TODO: Make translatable string
|
943
|
|
- lcd_goto_screen(lcd_status_screen);
|
|
935
|
+ lcd_return_to_status();
|
944
|
936
|
echo_and_take_a_measurement();
|
945
|
937
|
|
946
|
938
|
const float z1 = measure_point_with_encoder();
|
|
@@ -979,7 +971,7 @@
|
979
|
971
|
do_blocking_move_to_z(Z_CLEARANCE_BETWEEN_PROBES);
|
980
|
972
|
do_blocking_move_to_xy(lx, ly);
|
981
|
973
|
|
982
|
|
- lcd_goto_screen(lcd_status_screen);
|
|
974
|
+ lcd_return_to_status();
|
983
|
975
|
mesh_index_pair location;
|
984
|
976
|
do {
|
985
|
977
|
location = find_closest_mesh_point_of_type(INVALID, lx, ly, USE_NOZZLE_AS_REFERENCE, NULL, false);
|
|
@@ -1456,7 +1448,7 @@
|
1456
|
1448
|
|
1457
|
1449
|
if (do_ubl_mesh_map) display_map(g29_map_type); // show the user which point is being adjusted
|
1458
|
1450
|
|
1459
|
|
- lcd_implementation_clear();
|
|
1451
|
+ lcd_refresh();
|
1460
|
1452
|
|
1461
|
1453
|
lcd_mesh_edit_setup(new_z);
|
1462
|
1454
|
|
|
@@ -1497,7 +1489,7 @@
|
1497
|
1489
|
|
1498
|
1490
|
z_values[location.x_index][location.y_index] = new_z;
|
1499
|
1491
|
|
1500
|
|
- lcd_implementation_clear();
|
|
1492
|
+ lcd_refresh();
|
1501
|
1493
|
|
1502
|
1494
|
} while (location.x_index >= 0 && --g29_repetition_cnt > 0);
|
1503
|
1495
|
|