@@ -793,11 +793,11 @@ void MarlinUI::draw_status_message(const bool blink) {
793
793
static lcd_uint_t pc = 0 , pr = 2 ;
794
794
inline void setPercentPos (const lcd_uint_t c, const lcd_uint_t r) { pc = c; pr = r; }
795
795
void MarlinUI::drawPercent () {
796
- const uint8_t progress = ui. get_progress_percent ();
796
+ const uint8_t progress = get_progress_percent ();
797
797
if (progress) {
798
798
lcd_moveto (pc, pr);
799
799
lcd_put_u8str (F (TERN (IS_SD_PRINTING, " SD" , " P:" )));
800
- lcd_put_u8str (TERN (PRINT_PROGRESS_SHOW_DECIMALS, permyriadtostr4 (ui. get_progress_permyriad ()), ui8tostr3rj (progress)));
800
+ lcd_put_u8str (TERN (PRINT_PROGRESS_SHOW_DECIMALS, permyriadtostr4 (get_progress_permyriad ()), ui8tostr3rj (progress)));
801
801
lcd_put_u8str (F (" %" ));
802
802
}
803
803
}
@@ -806,9 +806,9 @@ void MarlinUI::draw_status_message(const bool blink) {
806
806
#if ENABLED(SHOW_REMAINING_TIME)
807
807
void MarlinUI::drawRemain () {
808
808
if (printJobOngoing ()) {
809
- const duration_t remaint = ui. get_remaining_time ();
809
+ const duration_t remaint = get_remaining_time ();
810
810
timepos = TPOFFSET - remaint.toDigital (buffer);
811
- TERN_ ( NOT ( LCD_INFO_SCREEN_STYLE) , lcd_put_lchar (timepos - 1 , 2 , 0x20 );)
811
+ IF_DISABLED ( LCD_INFO_SCREEN_STYLE, lcd_put_lchar (timepos - 1 , 2 , 0x20 ));
812
812
lcd_put_lchar (TERN (LCD_INFO_SCREEN_STYLE, 11 , timepos), 2 , ' R' );
813
813
lcd_put_u8str (buffer);
814
814
}
@@ -817,10 +817,10 @@ void MarlinUI::draw_status_message(const bool blink) {
817
817
818
818
#if ENABLED(SHOW_INTERACTION_TIME)
819
819
void MarlinUI::drawInter () {
820
- const duration_t interactt = ui. interaction_time ;
820
+ const duration_t interactt = interaction_time;
821
821
if (printingIsActive () && interactt.value ) {
822
822
timepos = TPOFFSET - interactt.toDigital (buffer);
823
- TERN_ ( NOT ( LCD_INFO_SCREEN_STYLE) , lcd_put_lchar (timepos - 1 , 2 , 0x20 );)
823
+ IF_DISABLED ( LCD_INFO_SCREEN_STYLE, lcd_put_lchar (timepos - 1 , 2 , 0x20 ));
824
824
lcd_put_lchar (TERN (LCD_INFO_SCREEN_STYLE, 11 , timepos), 2 , ' C' );
825
825
lcd_put_u8str (buffer);
826
826
}
@@ -832,7 +832,7 @@ void MarlinUI::draw_status_message(const bool blink) {
832
832
if (printJobOngoing ()) {
833
833
const duration_t elapsedt = print_job_timer.duration ();
834
834
timepos = TPOFFSET - elapsedt.toDigital (buffer);
835
- TERN_ ( NOT ( LCD_INFO_SCREEN_STYLE) , lcd_put_lchar (timepos - 1 , 2 , 0x20 );)
835
+ IF_DISABLED ( LCD_INFO_SCREEN_STYLE, lcd_put_lchar (timepos - 1 , 2 , 0x20 ));
836
836
lcd_put_lchar (TERN (LCD_INFO_SCREEN_STYLE, 11 , timepos), 2 , ' E' );
837
837
lcd_put_u8str (buffer);
838
838
}
0 commit comments