Browse Source

Change the end of SD cart print message from minutes/seconds to hours/minutes.

daid303 11 years ago
parent
commit
b69cb9fbd9
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/Marlin_main.cpp

+ 4
- 4
Marlin/Marlin_main.cpp View File

528
         stoptime=millis();
528
         stoptime=millis();
529
         char time[30];
529
         char time[30];
530
         unsigned long t=(stoptime-starttime)/1000;
530
         unsigned long t=(stoptime-starttime)/1000;
531
-        int sec,min;
532
-        min=t/60;
533
-        sec=t%60;
534
-        sprintf_P(time, PSTR("%i min, %i sec"),min,sec);
531
+        int hours, minutes;
532
+        minutes=(t/60)%60;
533
+        hours=t/60/60;
534
+        sprintf_P(time, PSTR("%i hours %i minutes"),hours, minutes);
535
         SERIAL_ECHO_START;
535
         SERIAL_ECHO_START;
536
         SERIAL_ECHOLN(time);
536
         SERIAL_ECHOLN(time);
537
         lcd_setstatus(time);
537
         lcd_setstatus(time);

Loading…
Cancel
Save