Browse Source

Ensure PENDING/ELAPSED use a 32-bit integer

Scott Lahteine 6 years ago
parent
commit
f5498168ae
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/core/millis_t.h

+ 1
- 1
Marlin/src/core/millis_t.h View File

@@ -25,5 +25,5 @@
25 25
 
26 26
 typedef uint32_t millis_t;
27 27
 
28
-#define PENDING(NOW,SOON) ((long)(NOW-(SOON))<0)
28
+#define PENDING(NOW,SOON) ((int32_t)(NOW-(SOON))<0)
29 29
 #define ELAPSED(NOW,SOON) (!PENDING(NOW,SOON))

Loading…
Cancel
Save