Use TimeLib.h header internally too

This commit is contained in:
PaulStoffregen
2016-03-04 19:59:40 -08:00
parent 53dd37ef33
commit 0bfe218b56
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
*
* No memory is consumed in the sketch if your code does not call any of the string methods
* You can change the text of the strings, make sure the short strings are each exactly 3 characters
* the long strings can be any length up to the constant dt_MAX_STRING_LEN defined in Time.h
* the long strings can be any length up to the constant dt_MAX_STRING_LEN defined in TimeLib.h
*
*/
@ -20,7 +20,7 @@
#define strcpy_P(dest, src) strcpy((dest), (src))
#endif
#include <string.h> // for strcpy_P or strcpy
#include "Time.h"
#include "TimeLib.h"
// the short strings for each day or month must be exactly dt_SHORT_STR_LEN
#define dt_SHORT_STR_LEN 3 // the length of short strings

View File

@ -33,7 +33,7 @@
#include <WProgram.h>
#endif
#include "Time.h"
#include "TimeLib.h"
static tmElements_t tm; // a cache of time elements
static time_t cacheTime; // the time the cache was updated