🚸 Progress display followup (#24879)
This commit is contained in:
@@ -760,7 +760,7 @@ void MarlinUI::draw_status_message(const bool blink) {
|
||||
#if HAS_PRINT_PROGRESS
|
||||
#define TPOFFSET (LCD_WIDTH - 1)
|
||||
static uint8_t timepos = TPOFFSET - 6;
|
||||
static char buffer[14];
|
||||
static char buffer[8];
|
||||
static lcd_uint_t pc, pr;
|
||||
|
||||
#if ENABLED(SHOW_PROGRESS_PERCENT)
|
||||
@@ -776,9 +776,10 @@ void MarlinUI::draw_status_message(const bool blink) {
|
||||
#endif
|
||||
#if ENABLED(SHOW_REMAINING_TIME)
|
||||
void MarlinUI::drawRemain() {
|
||||
const duration_t remaint = ui.get_remaining_time();
|
||||
if (printJobOngoing()) {
|
||||
const duration_t remaint = ui.get_remaining_time();
|
||||
timepos = TPOFFSET - remaint.toDigital(buffer);
|
||||
TERN_(NOT(LCD_INFO_SCREEN_STYLE), lcd_put_lchar(timepos - 1, 2, 0x20);)
|
||||
lcd_put_lchar(TERN(LCD_INFO_SCREEN_STYLE, 11, timepos), 2, 'R');
|
||||
lcd_put_u8str(buffer);
|
||||
}
|
||||
@@ -789,6 +790,7 @@ void MarlinUI::draw_status_message(const bool blink) {
|
||||
const duration_t interactt = ui.interaction_time;
|
||||
if (printingIsActive() && interactt.value) {
|
||||
timepos = TPOFFSET - interactt.toDigital(buffer);
|
||||
TERN_(NOT(LCD_INFO_SCREEN_STYLE), lcd_put_lchar(timepos - 1, 2, 0x20);)
|
||||
lcd_put_lchar(TERN(LCD_INFO_SCREEN_STYLE, 11, timepos), 2, 'C');
|
||||
lcd_put_u8str(buffer);
|
||||
}
|
||||
@@ -796,11 +798,11 @@ void MarlinUI::draw_status_message(const bool blink) {
|
||||
#endif
|
||||
#if ENABLED(SHOW_ELAPSED_TIME)
|
||||
void MarlinUI::drawElapsed() {
|
||||
const duration_t elapsedt = print_job_timer.duration();
|
||||
if (printJobOngoing()) {
|
||||
const duration_t elapsedt = print_job_timer.duration();
|
||||
timepos = TPOFFSET - elapsedt.toDigital(buffer);
|
||||
TERN_(NOT(LCD_INFO_SCREEN_STYLE), lcd_put_lchar(timepos - 1, 2, 0x20);)
|
||||
lcd_put_lchar(TERN(LCD_INFO_SCREEN_STYLE, 11, timepos), 2, 'E');
|
||||
//lcd_put_lchar(timepos, 2, LCD_STR_CLOCK[0]);
|
||||
lcd_put_u8str(buffer);
|
||||
}
|
||||
}
|
||||
@@ -919,7 +921,7 @@ void MarlinUI::draw_status_screen() {
|
||||
#if LCD_WIDTH < 20
|
||||
|
||||
#if HAS_PRINT_PROGRESS
|
||||
pc = 0, pr = 2;
|
||||
pc = 0; pr = 2;
|
||||
rotate_progress();
|
||||
#endif
|
||||
|
||||
@@ -1006,14 +1008,14 @@ void MarlinUI::draw_status_screen() {
|
||||
#if LCD_WIDTH >= 20
|
||||
|
||||
#if HAS_PRINT_PROGRESS
|
||||
pc = timepos - 7, pr = 2;
|
||||
pc = 6; pr = 2;
|
||||
rotate_progress();
|
||||
#else
|
||||
char c;
|
||||
uint16_t per;
|
||||
#if HAS_FAN0
|
||||
if (true
|
||||
#if EXTRUDERS && ENABLED(ADAPTIVE_FAN_SLOWING)
|
||||
#if BOTH(HAS_EXTRUDERS, ADAPTIVE_FAN_SLOWING)
|
||||
&& (blink || thermalManager.fan_speed_scaler[0] < 128)
|
||||
#endif
|
||||
) {
|
||||
@@ -1087,7 +1089,7 @@ void MarlinUI::draw_status_screen() {
|
||||
_draw_bed_status(blink);
|
||||
#elif HAS_PRINT_PROGRESS
|
||||
#define DREW_PRINT_PROGRESS 1
|
||||
pc = 0, pr = 2;
|
||||
pc = 0; pr = 2;
|
||||
rotate_progress();
|
||||
#endif
|
||||
|
||||
@@ -1095,7 +1097,7 @@ void MarlinUI::draw_status_screen() {
|
||||
// All progress strings
|
||||
//
|
||||
#if HAS_PRINT_PROGRESS && !DREW_PRINT_PROGRESS
|
||||
pc = LCD_WIDTH - 9, pr = 2;
|
||||
pc = LCD_WIDTH - 9; pr = 2;
|
||||
rotate_progress();
|
||||
#endif
|
||||
#endif // LCD_INFO_SCREEN_STYLE 1
|
||||
|
||||
Reference in New Issue
Block a user