Explorar el Código

Merge pull request #3722 from jbrazio/bugfix/printcounter

Minor #warning fix for PrintCounter
Scott Lahteine hace 9 años
padre
commit
a454a88f9c
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 0
    2
      Marlin/printcounter.cpp
  2. 2
    0
      Marlin/printcounter.h

+ 0
- 2
Marlin/printcounter.cpp Ver fichero

@@ -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 Ver fichero

@@ -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

Loading…
Cancelar
Guardar