瀏覽代碼

Fix duration when time is exactly 86400s

blye 7 年之前
父節點
當前提交
554d849827
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Marlin/src/lcd/ultralcd_impl_DOGM.h

+ 1
- 1
Marlin/src/lcd/ultralcd_impl_DOGM.h 查看文件

@@ -607,7 +607,7 @@ static void lcd_implementation_status_screen() {
607 607
 
608 608
       char buffer[10];
609 609
       duration_t elapsed = print_job_timer.duration();
610
-      bool has_days = (elapsed.value > 60*60*24L);
610
+      bool has_days = (elapsed.value >= 60*60*24L);
611 611
       uint8_t len = elapsed.toDigital(buffer, has_days);
612 612
       u8g.setPrintPos(SD_DURATION_X, 48);
613 613
       lcd_print(buffer);

Loading…
取消
儲存