From 7af99d03d3da2c9f1a9b5c2d3409dd69030ad0e2 Mon Sep 17 00:00:00 2001 From: Robby Candra Date: Wed, 16 Oct 2019 16:25:52 +0700 Subject: [PATCH] Don't show prefix if no elapsed time --- Marlin/src/lcd/dogm/status_screen_DOGM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/lcd/dogm/status_screen_DOGM.cpp b/Marlin/src/lcd/dogm/status_screen_DOGM.cpp index ce6630efd..003da5960 100644 --- a/Marlin/src/lcd/dogm/status_screen_DOGM.cpp +++ b/Marlin/src/lcd/dogm/status_screen_DOGM.cpp @@ -597,7 +597,7 @@ void MarlinUI::draw_status_screen() { lcd_put_wchar(PROGRESS_BAR_X, EXTRAS_BASELINE, SHOW_REMAINING_TIME_PREFIX); lcd_put_u8str(estimation_x_pos, EXTRAS_BASELINE, estimation_string); } - else { + else if (elapsed_string[0] != '\0'){ lcd_put_wchar(PROGRESS_BAR_X, EXTRAS_BASELINE, ELAPSED_TIME_PREFIX); lcd_put_u8str(elapsed_x_pos, EXTRAS_BASELINE, elapsed_string); }