Test time difference in safe way
This commit is contained in:
parent
562e281c73
commit
386140f361
9 changed files with 60 additions and 57 deletions
|
|
@ -57,4 +57,7 @@
|
|||
|
||||
#define PIN_EXISTS(PN) (defined(PN ##_PIN) && PN ##_PIN >= 0)
|
||||
|
||||
#define PENDING(NOW,SOON) ((long)(NOW-(SOON))<0)
|
||||
#define ELAPSED(NOW,SOON) (!PENDING(NOW,SOON))
|
||||
|
||||
#endif //__MACROS_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue