-
Notifications
You must be signed in to change notification settings - Fork 819
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compare time differences instead of timestamps (#1648)
Comparing two results of millis() can result in erroneous behavior when the value of millis() wraps around, which happens after around 25 days of uptime. Comparing time difference (by subtracting two timestamps) works well, provided timestamps are not too old (less than 25 days old).
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters