Parcourir la source

Fix duration when time is exactly 86400s

blye il y a 7 ans
Parent
révision
554d849827
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      Marlin/src/lcd/ultralcd_impl_DOGM.h

+ 1
- 1
Marlin/src/lcd/ultralcd_impl_DOGM.h Voir le fichier

607
 
607
 
608
       char buffer[10];
608
       char buffer[10];
609
       duration_t elapsed = print_job_timer.duration();
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
       uint8_t len = elapsed.toDigital(buffer, has_days);
611
       uint8_t len = elapsed.toDigital(buffer, has_days);
612
       u8g.setPrintPos(SD_DURATION_X, 48);
612
       u8g.setPrintPos(SD_DURATION_X, 48);
613
       lcd_print(buffer);
613
       lcd_print(buffer);

Chargement…
Annuler
Enregistrer