Browse Source

Ensure PENDING/ELAPSED use a 32-bit integer

pull/1/head
Scott Lahteine 6 years ago
parent
commit
f5498168ae
  1. 2
      Marlin/src/core/millis_t.h

2
Marlin/src/core/millis_t.h

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

Loading…
Cancel
Save