|
@@ -47,7 +47,6 @@
|
47
|
47
|
float lcd_mesh_edit();
|
48
|
48
|
void lcd_z_offset_edit_setup(float);
|
49
|
49
|
extern void _lcd_ubl_output_map_lcd();
|
50
|
|
- extern bool ubl_lcd_clicked();
|
51
|
50
|
float lcd_z_offset_edit();
|
52
|
51
|
#endif
|
53
|
52
|
|
|
@@ -750,11 +749,11 @@
|
750
|
749
|
if (do_ubl_mesh_map) display_map(g29_map_type);
|
751
|
750
|
|
752
|
751
|
#if ENABLED(NEWPANEL)
|
753
|
|
- if (ubl_lcd_clicked()) {
|
|
752
|
+ if (is_lcd_clicked()) {
|
754
|
753
|
SERIAL_PROTOCOLLNPGM("\nMesh only partially populated.\n");
|
755
|
754
|
lcd_quick_feedback();
|
756
|
755
|
STOW_PROBE();
|
757
|
|
- while (ubl_lcd_clicked()) idle();
|
|
756
|
+ while (is_lcd_clicked()) idle();
|
758
|
757
|
lcd_external_control = false;
|
759
|
758
|
restore_ubl_active_state_and_leave();
|
760
|
759
|
safe_delay(50); // Debounce the Encoder wheel
|
|
@@ -893,13 +892,14 @@
|
893
|
892
|
#endif // HAS_BED_PROBE
|
894
|
893
|
|
895
|
894
|
#if ENABLED(NEWPANEL)
|
|
895
|
+
|
896
|
896
|
float unified_bed_leveling::measure_point_with_encoder() {
|
897
|
897
|
|
898
|
|
- while (ubl_lcd_clicked()) delay(50); // wait for user to release encoder wheel
|
|
898
|
+ while (is_lcd_clicked()) delay(50); // wait for user to release encoder wheel
|
899
|
899
|
delay(50); // debounce
|
900
|
900
|
|
901
|
901
|
KEEPALIVE_STATE(PAUSED_FOR_USER);
|
902
|
|
- while (!ubl_lcd_clicked()) { // we need the loop to move the nozzle based on the encoder wheel here!
|
|
902
|
+ while (!is_lcd_clicked()) { // we need the loop to move the nozzle based on the encoder wheel here!
|
903
|
903
|
idle();
|
904
|
904
|
if (encoder_diff) {
|
905
|
905
|
do_blocking_move_to_z(current_position[Z_AXIS] + 0.01 * float(encoder_diff));
|
|
@@ -989,9 +989,9 @@
|
989
|
989
|
const float z_step = 0.01; // existing behavior: 0.01mm per click, occasionally step
|
990
|
990
|
//const float z_step = 1.0 / planner.axis_steps_per_mm[Z_AXIS]; // approx one step each click
|
991
|
991
|
|
992
|
|
- while (ubl_lcd_clicked()) delay(50); // wait for user to release encoder wheel
|
|
992
|
+ while (is_lcd_clicked()) delay(50); // wait for user to release encoder wheel
|
993
|
993
|
delay(50); // debounce
|
994
|
|
- while (!ubl_lcd_clicked()) { // we need the loop to move the nozzle based on the encoder wheel here!
|
|
994
|
+ while (!is_lcd_clicked()) { // we need the loop to move the nozzle based on the encoder wheel here!
|
995
|
995
|
idle();
|
996
|
996
|
if (encoder_diff) {
|
997
|
997
|
do_blocking_move_to_z(current_position[Z_AXIS] + float(encoder_diff) * z_step);
|
|
@@ -999,11 +999,11 @@
|
999
|
999
|
}
|
1000
|
1000
|
}
|
1001
|
1001
|
|
1002
|
|
- // this sequence to detect an ubl_lcd_clicked() debounce it and leave if it is
|
|
1002
|
+ // this sequence to detect an is_lcd_clicked() debounce it and leave if it is
|
1003
|
1003
|
// a Press and Hold is repeated in a lot of places (including G26_Mesh_Validation.cpp). This
|
1004
|
1004
|
// should be redone and compressed.
|
1005
|
1005
|
const millis_t nxt = millis() + 1500L;
|
1006
|
|
- while (ubl_lcd_clicked()) { // debounce and watch for abort
|
|
1006
|
+ while (is_lcd_clicked()) { // debounce and watch for abort
|
1007
|
1007
|
idle();
|
1008
|
1008
|
if (ELAPSED(millis(), nxt)) {
|
1009
|
1009
|
SERIAL_PROTOCOLLNPGM("\nMesh only partially populated.");
|
|
@@ -1011,7 +1011,7 @@
|
1011
|
1011
|
|
1012
|
1012
|
#if ENABLED(NEWPANEL)
|
1013
|
1013
|
lcd_quick_feedback();
|
1014
|
|
- while (ubl_lcd_clicked()) idle();
|
|
1014
|
+ while (is_lcd_clicked()) idle();
|
1015
|
1015
|
lcd_external_control = false;
|
1016
|
1016
|
#endif
|
1017
|
1017
|
|
|
@@ -1528,7 +1528,7 @@
|
1528
|
1528
|
do_blocking_move_to_z(h_offset + new_z); // Move the nozzle as the point is edited
|
1529
|
1529
|
#endif
|
1530
|
1530
|
idle();
|
1531
|
|
- } while (!ubl_lcd_clicked());
|
|
1531
|
+ } while (!is_lcd_clicked());
|
1532
|
1532
|
|
1533
|
1533
|
if (!lcd_map_control) lcd_return_to_status();
|
1534
|
1534
|
|
|
@@ -1537,18 +1537,18 @@
|
1537
|
1537
|
// Let's work on specifying a proper API for the LCD ASAP, OK?
|
1538
|
1538
|
lcd_external_control = true;
|
1539
|
1539
|
|
1540
|
|
- // this sequence to detect an ubl_lcd_clicked() debounce it and leave if it is
|
|
1540
|
+ // this sequence to detect an is_lcd_clicked() debounce it and leave if it is
|
1541
|
1541
|
// a Press and Hold is repeated in a lot of places (including G26_Mesh_Validation.cpp). This
|
1542
|
1542
|
// should be redone and compressed.
|
1543
|
1543
|
const millis_t nxt = millis() + 1500UL;
|
1544
|
|
- while (ubl_lcd_clicked()) { // debounce and watch for abort
|
|
1544
|
+ while (is_lcd_clicked()) { // debounce and watch for abort
|
1545
|
1545
|
idle();
|
1546
|
1546
|
if (ELAPSED(millis(), nxt)) {
|
1547
|
1547
|
lcd_return_to_status();
|
1548
|
1548
|
do_blocking_move_to_z(Z_CLEARANCE_BETWEEN_PROBES);
|
1549
|
1549
|
LCD_MESSAGEPGM(MSG_EDITING_STOPPED);
|
1550
|
1550
|
|
1551
|
|
- while (ubl_lcd_clicked()) idle();
|
|
1551
|
+ while (is_lcd_clicked()) idle();
|
1552
|
1552
|
|
1553
|
1553
|
goto FINE_TUNE_EXIT;
|
1554
|
1554
|
}
|