Skip to content

Commit

Permalink
Fix compiler warnings when constants used with TimeAlarms
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Jul 6, 2016
1 parent cb1e416 commit 18ce15b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions TimeLib.h
Expand Up @@ -64,13 +64,13 @@ typedef time_t(*getExternalTime)();

/*==============================================================================*/
/* Useful Constants */
#define SECS_PER_MIN (60UL)
#define SECS_PER_HOUR (3600UL)
#define SECS_PER_DAY (SECS_PER_HOUR * 24UL)
#define DAYS_PER_WEEK (7UL)
#define SECS_PER_WEEK (SECS_PER_DAY * DAYS_PER_WEEK)
#define SECS_PER_YEAR (SECS_PER_WEEK * 52UL)
#define SECS_YR_2000 (946684800UL) // the time at the start of y2k
#define SECS_PER_MIN ((time_t)(60UL))
#define SECS_PER_HOUR ((time_t)(3600UL))
#define SECS_PER_DAY ((time_t)(SECS_PER_HOUR * 24UL))
#define DAYS_PER_WEEK ((time_t)(7UL))
#define SECS_PER_WEEK ((time_t)(SECS_PER_DAY * DAYS_PER_WEEK))
#define SECS_PER_YEAR ((time_t)(SECS_PER_WEEK * 52UL))
#define SECS_YR_2000 ((time_t)(946684800UL)) // the time at the start of y2k

/* Useful Macros for getting elapsed time */
#define numberOfSeconds(_time_) (_time_ % SECS_PER_MIN)
Expand Down

0 comments on commit 18ce15b

Please sign in to comment.