ソースを参照

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

daid303 11年前
コミット
b69cb9fbd9
1個のファイルの変更4行の追加4行の削除
  1. 4
    4
      Marlin/Marlin_main.cpp

+ 4
- 4
Marlin/Marlin_main.cpp ファイルの表示

@@ -528,10 +528,10 @@ void get_command()
528 528
         stoptime=millis();
529 529
         char time[30];
530 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 535
         SERIAL_ECHO_START;
536 536
         SERIAL_ECHOLN(time);
537 537
         lcd_setstatus(time);

読み込み中…
キャンセル
保存