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
+1 -1
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