use const for mkTime input (fixes #85)

This commit is contained in:
PaulStoffregen
2017-12-13 04:13:28 -08:00
parent 420a3c08af
commit 0473efe605
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ void breakTime(time_t timeInput, tmElements_t &tm){
tm.Day = time + 1; // day of month
}
time_t makeTime(tmElements_t &tm){
time_t makeTime(const tmElements_t &tm){
// assemble time elements into time_t
// note year argument is offset from 1970 (see macros in time.h to convert to other formats)
// previous version used full four digit year (or digits since 2000),i.e. 2009 was 2009 or 9

View File

@ -136,7 +136,7 @@ void setSyncInterval(time_t interval); // set the number of seconds between r
/* low level functions to convert to and from system time */
void breakTime(time_t time, tmElements_t &tm); // break time_t into elements
time_t makeTime(tmElements_t &tm); // convert time elements into time_t
time_t makeTime(const tmElements_t &tm); // convert time elements into time_t
} // extern "C++"
#endif // __cplusplus