瀏覽代碼

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

daid303 12 年之前
父節點
當前提交
b69cb9fbd9
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. 4
    4
      Marlin/Marlin_main.cpp

+ 4
- 4
Marlin/Marlin_main.cpp 查看文件

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…
取消
儲存