浏览代码

Minor #warning fix for PrintCounter

João Brázio 8 年前
父节点
当前提交
eafa16a781
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 0
    2
      Marlin/printcounter.cpp
  2. 2
    0
      Marlin/printcounter.h

+ 0
- 2
Marlin/printcounter.cpp 查看文件

@@ -22,7 +22,6 @@
22 22
 
23 23
 #include "Marlin.h"
24 24
 #include "printcounter.h"
25
-#include <avr/eeprom.h>
26 25
 
27 26
 PrintCounter::PrintCounter(): super() {
28 27
   this->loadStats();
@@ -123,7 +122,6 @@ void PrintCounter::tick() {
123 122
       PrintCounter::debug(PSTR("tick"));
124 123
     #endif
125 124
 
126
-    uint16_t t = this->duration();;
127 125
     this->data.printTime += this->deltaDuration();
128 126
     update_before = now;
129 127
   }

+ 2
- 0
Marlin/printcounter.h 查看文件

@@ -25,6 +25,8 @@
25 25
 
26 26
 #include "macros.h"
27 27
 #include "stopwatch.h"
28
+#include <avr/eeprom.h>
29
+
28 30
 
29 31
 // Print debug messages with M111 S2
30 32
 //#define DEBUG_PRINTCOUNTER

正在加载...
取消
保存