Browse Source

Minor #warning fix for PrintCounter

João Brázio 8 years ago
parent
commit
eafa16a781
No account linked to committer's email address
2 changed files with 2 additions and 2 deletions
  1. 0
    2
      Marlin/printcounter.cpp
  2. 2
    0
      Marlin/printcounter.h

+ 0
- 2
Marlin/printcounter.cpp View File

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

+ 2
- 0
Marlin/printcounter.h View File

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

Loading…
Cancel
Save