|
@@ -131,7 +131,7 @@
|
131
|
131
|
void set_destination_to_current();
|
132
|
132
|
void set_current_to_destination();
|
133
|
133
|
void prepare_move_to_destination();
|
134
|
|
- void lcd_setstatuspgm(const char* const message, const uint8_t level);
|
|
134
|
+ void lcd_setstatusPGM(const char* const message, const int8_t level);
|
135
|
135
|
void sync_plan_position_e();
|
136
|
136
|
void chirp_at_user();
|
137
|
137
|
|
|
@@ -181,18 +181,17 @@
|
181
|
181
|
safe_delay(10); // Wait for click to settle
|
182
|
182
|
|
183
|
183
|
#if ENABLED(ULTRA_LCD)
|
184
|
|
- lcd_setstatuspgm(PSTR("Mesh Validation Stopped."), 99);
|
|
184
|
+ lcd_setstatusPGM(PSTR("Mesh Validation Stopped."), 99);
|
185
|
185
|
lcd_quick_feedback();
|
186
|
186
|
#endif
|
187
|
|
- lcd_reset_alert_level();
|
188
|
187
|
|
189
|
188
|
while (!ubl_lcd_clicked()) idle(); // Wait for button release
|
190
|
189
|
|
191
|
190
|
// If the button is suddenly pressed again,
|
192
|
191
|
// ask the user to resolve the issue
|
193
|
|
- lcd_setstatuspgm(PSTR("Release button"), 99); // will never appear...
|
|
192
|
+ lcd_setstatusPGM(PSTR("Release button"), 99); // will never appear...
|
194
|
193
|
while (ubl_lcd_clicked()) idle(); // unless this loop happens
|
195
|
|
- lcd_setstatuspgm(PSTR(""));
|
|
194
|
+ lcd_setstatusPGM(PSTR(""), -1);
|
196
|
195
|
|
197
|
196
|
return true;
|
198
|
197
|
}
|
|
@@ -351,8 +350,7 @@
|
351
|
350
|
} while (--g26_repeats && location.x_index >= 0 && location.y_index >= 0);
|
352
|
351
|
|
353
|
352
|
LEAVE:
|
354
|
|
- lcd_reset_alert_level();
|
355
|
|
- lcd_setstatuspgm(PSTR("Leaving G26"));
|
|
353
|
+ lcd_setstatusPGM(PSTR("Leaving G26"), -1);
|
356
|
354
|
|
357
|
355
|
retract_filament(destination);
|
358
|
356
|
destination[Z_AXIS] = Z_CLEARANCE_BETWEEN_PROBES;
|
|
@@ -726,8 +724,7 @@
|
726
|
724
|
}
|
727
|
725
|
|
728
|
726
|
bool unified_bed_leveling::exit_from_g26() {
|
729
|
|
- lcd_reset_alert_level();
|
730
|
|
- lcd_setstatuspgm(PSTR("Leaving G26"));
|
|
727
|
+ lcd_setstatusPGM(PSTR("Leaving G26"), -1);
|
731
|
728
|
while (ubl_lcd_clicked()) idle();
|
732
|
729
|
return UBL_ERR;
|
733
|
730
|
}
|
|
@@ -741,7 +738,7 @@
|
741
|
738
|
#if HAS_TEMP_BED
|
742
|
739
|
#if ENABLED(ULTRA_LCD)
|
743
|
740
|
if (g26_bed_temp > 25) {
|
744
|
|
- lcd_setstatuspgm(PSTR("G26 Heating Bed."), 99);
|
|
741
|
+ lcd_setstatusPGM(PSTR("G26 Heating Bed."), 99);
|
745
|
742
|
lcd_quick_feedback();
|
746
|
743
|
#endif
|
747
|
744
|
has_control_of_lcd_panel = true;
|
|
@@ -757,7 +754,7 @@
|
757
|
754
|
}
|
758
|
755
|
#if ENABLED(ULTRA_LCD)
|
759
|
756
|
}
|
760
|
|
- lcd_setstatuspgm(PSTR("G26 Heating Nozzle."), 99);
|
|
757
|
+ lcd_setstatusPGM(PSTR("G26 Heating Nozzle."), 99);
|
761
|
758
|
lcd_quick_feedback();
|
762
|
759
|
#endif
|
763
|
760
|
#endif
|
|
@@ -774,8 +771,7 @@
|
774
|
771
|
}
|
775
|
772
|
|
776
|
773
|
#if ENABLED(ULTRA_LCD)
|
777
|
|
- lcd_reset_alert_level();
|
778
|
|
- lcd_setstatuspgm(PSTR(""));
|
|
774
|
+ lcd_setstatusPGM(PSTR(""), -1);
|
779
|
775
|
lcd_quick_feedback();
|
780
|
776
|
#endif
|
781
|
777
|
|
|
@@ -792,7 +788,7 @@
|
792
|
788
|
|
793
|
789
|
has_control_of_lcd_panel = true;
|
794
|
790
|
|
795
|
|
- lcd_setstatuspgm(PSTR("User-Controlled Prime"), 99);
|
|
791
|
+ lcd_setstatusPGM(PSTR("User-Controlled Prime"), 99);
|
796
|
792
|
chirp_at_user();
|
797
|
793
|
|
798
|
794
|
set_destination_to_current();
|
|
@@ -819,9 +815,9 @@
|
819
|
815
|
while (ubl_lcd_clicked()) idle(); // Debounce Encoder Wheel
|
820
|
816
|
|
821
|
817
|
#if ENABLED(ULTRA_LCD)
|
822
|
|
- strcpy_P(lcd_status_message, PSTR("Done Priming")); // We can't do lcd_setstatuspgm() without having it continue;
|
|
818
|
+ strcpy_P(lcd_status_message, PSTR("Done Priming")); // We can't do lcd_setstatusPGM() without having it continue;
|
823
|
819
|
// So... We cheat to get a message up.
|
824
|
|
- lcd_setstatuspgm(PSTR("Done Priming"), 99);
|
|
820
|
+ lcd_setstatusPGM(PSTR("Done Priming"), 99);
|
825
|
821
|
lcd_quick_feedback();
|
826
|
822
|
#endif
|
827
|
823
|
|
|
@@ -830,7 +826,7 @@
|
830
|
826
|
}
|
831
|
827
|
else {
|
832
|
828
|
#if ENABLED(ULTRA_LCD)
|
833
|
|
- lcd_setstatuspgm(PSTR("Fixed Length Prime."), 99);
|
|
829
|
+ lcd_setstatusPGM(PSTR("Fixed Length Prime."), 99);
|
834
|
830
|
lcd_quick_feedback();
|
835
|
831
|
#endif
|
836
|
832
|
set_destination_to_current();
|