1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

Ensure PENDING/ELAPSED use a 32-bit integer

This commit is contained in:
Scott Lahteine 2018-10-31 17:23:24 -05:00
parent 6e041b9c61
commit f5498168ae

View File

@ -25,5 +25,5 @@
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))