|
@@ -526,7 +526,7 @@ FORCE_INLINE void _draw_axis_value(const AxisEnum axis, const char *value, const
|
526
|
526
|
}
|
527
|
527
|
}
|
528
|
528
|
|
529
|
|
-FORCE_INLINE void _draw_heater_status(const int8_t heater, const char prefix, const bool blink) {
|
|
529
|
+FORCE_INLINE void _draw_heater_status(const heater_ind_t heater, const char prefix, const bool blink) {
|
530
|
530
|
#if HAS_HEATED_BED
|
531
|
531
|
const bool isBed = heater < 0;
|
532
|
532
|
const float t1 = (isBed ? thermalManager.degBed() : thermalManager.degHotend(heater)),
|
|
@@ -567,7 +567,7 @@ FORCE_INLINE void _draw_heater_status(const int8_t heater, const char prefix, co
|
567
|
567
|
}
|
568
|
568
|
|
569
|
569
|
FORCE_INLINE void _draw_bed_status(const bool blink) {
|
570
|
|
- _draw_heater_status(-1, (
|
|
570
|
+ _draw_heater_status(H_BED, (
|
571
|
571
|
#if HAS_LEVELING
|
572
|
572
|
planner.leveling_active && blink ? '_' :
|
573
|
573
|
#endif
|
|
@@ -750,19 +750,17 @@ void MarlinUI::draw_status_screen() {
|
750
|
750
|
//
|
751
|
751
|
// Hotend 0 Temperature
|
752
|
752
|
//
|
753
|
|
- _draw_heater_status(0, -1, blink);
|
|
753
|
+ _draw_heater_status(H_E0, -1, blink);
|
754
|
754
|
|
755
|
755
|
//
|
756
|
756
|
// Hotend 1 or Bed Temperature
|
757
|
757
|
//
|
758
|
758
|
#if HOTENDS > 1
|
759
|
759
|
lcd_moveto(8, 0);
|
760
|
|
- lcd_put_wchar(LCD_STR_THERMOMETER[0]);
|
761
|
|
- _draw_heater_status(1, -1, blink);
|
|
760
|
+ _draw_heater_status(H_E1, LCD_STR_THERMOMETER[0], blink);
|
762
|
761
|
#elif HAS_HEATED_BED
|
763
|
762
|
lcd_moveto(8, 0);
|
764
|
|
- lcd_put_wchar(LCD_STR_BEDTEMP[0]);
|
765
|
|
- _draw_heater_status(-1, -1, blink);
|
|
763
|
+ _draw_bed_status(blink);
|
766
|
764
|
#endif
|
767
|
765
|
|
768
|
766
|
#else // LCD_WIDTH >= 20
|
|
@@ -770,14 +768,14 @@ void MarlinUI::draw_status_screen() {
|
770
|
768
|
//
|
771
|
769
|
// Hotend 0 Temperature
|
772
|
770
|
//
|
773
|
|
- _draw_heater_status(0, LCD_STR_THERMOMETER[0], blink);
|
|
771
|
+ _draw_heater_status(H_E0, LCD_STR_THERMOMETER[0], blink);
|
774
|
772
|
|
775
|
773
|
//
|
776
|
774
|
// Hotend 1 or Bed Temperature
|
777
|
775
|
//
|
778
|
776
|
#if HOTENDS > 1
|
779
|
777
|
lcd_moveto(10, 0);
|
780
|
|
- _draw_heater_status(1, LCD_STR_THERMOMETER[0], blink);
|
|
778
|
+ _draw_heater_status(H_E1, LCD_STR_THERMOMETER[0], blink);
|
781
|
779
|
#elif HAS_HEATED_BED
|
782
|
780
|
lcd_moveto(10, 0);
|
783
|
781
|
_draw_bed_status(blink);
|
|
@@ -806,7 +804,7 @@ void MarlinUI::draw_status_screen() {
|
806
|
804
|
#if HOTENDS > 2 || (HOTENDS > 1 && HAS_HEATED_BED)
|
807
|
805
|
|
808
|
806
|
#if HOTENDS > 2
|
809
|
|
- _draw_heater_status(2, LCD_STR_THERMOMETER[0], blink);
|
|
807
|
+ _draw_heater_status(H_E2, LCD_STR_THERMOMETER[0], blink);
|
810
|
808
|
lcd_moveto(10, 1);
|
811
|
809
|
#endif
|
812
|
810
|
|
|
@@ -911,7 +909,7 @@ void MarlinUI::draw_status_screen() {
|
911
|
909
|
//
|
912
|
910
|
// Hotend 0 Temperature
|
913
|
911
|
//
|
914
|
|
- _draw_heater_status(0, LCD_STR_THERMOMETER[0], blink);
|
|
912
|
+ _draw_heater_status(H_E0, LCD_STR_THERMOMETER[0], blink);
|
915
|
913
|
|
916
|
914
|
//
|
917
|
915
|
// Z Coordinate
|
|
@@ -931,7 +929,7 @@ void MarlinUI::draw_status_screen() {
|
931
|
929
|
//
|
932
|
930
|
lcd_moveto(0, 1);
|
933
|
931
|
#if HOTENDS > 1
|
934
|
|
- _draw_heater_status(1, LCD_STR_THERMOMETER[0], blink);
|
|
932
|
+ _draw_heater_status(H_E1, LCD_STR_THERMOMETER[0], blink);
|
935
|
933
|
#elif HAS_HEATED_BED
|
936
|
934
|
_draw_bed_status(blink);
|
937
|
935
|
#endif
|
|
@@ -948,7 +946,7 @@ void MarlinUI::draw_status_screen() {
|
948
|
946
|
//
|
949
|
947
|
lcd_moveto(0, 2);
|
950
|
948
|
#if HOTENDS > 2
|
951
|
|
- _draw_heater_status(2, LCD_STR_THERMOMETER[0], blink);
|
|
949
|
+ _draw_heater_status(H_E2, LCD_STR_THERMOMETER[0], blink);
|
952
|
950
|
#elif HOTENDS > 1 && HAS_HEATED_BED
|
953
|
951
|
_draw_bed_status(blink);
|
954
|
952
|
#elif HAS_PRINT_PROGRESS
|
|
@@ -987,7 +985,7 @@ void MarlinUI::draw_status_screen() {
|
987
|
985
|
void MarlinUI::draw_hotend_status(const uint8_t row, const uint8_t extruder) {
|
988
|
986
|
if (row < LCD_HEIGHT) {
|
989
|
987
|
lcd_moveto(LCD_WIDTH - 9, row);
|
990
|
|
- _draw_heater_status(extruder, LCD_STR_THERMOMETER[0], get_blink());
|
|
988
|
+ _draw_heater_status((heater_ind_t)extruder, LCD_STR_THERMOMETER[0], get_blink());
|
991
|
989
|
}
|
992
|
990
|
}
|
993
|
991
|
|