Browse Source

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

pull/1/head
daid303 12 years ago
parent
commit
b69cb9fbd9
  1. 8
      Marlin/Marlin_main.cpp

8
Marlin/Marlin_main.cpp

@ -528,10 +528,10 @@ void get_command()
stoptime=millis(); stoptime=millis();
char time[30]; char time[30];
unsigned long t=(stoptime-starttime)/1000; unsigned long t=(stoptime-starttime)/1000;
int sec,min; int hours, minutes;
min=t/60; minutes=(t/60)%60;
sec=t%60; hours=t/60/60;
sprintf_P(time, PSTR("%i min, %i sec"),min,sec); sprintf_P(time, PSTR("%i hours %i minutes"),hours, minutes);
SERIAL_ECHO_START; SERIAL_ECHO_START;
SERIAL_ECHOLN(time); SERIAL_ECHOLN(time);
lcd_setstatus(time); lcd_setstatus(time);

Loading…
Cancel
Save