DS1337 RTC library RTC 55 bytes nvram
Diff: ds1337.h
- Revision:
- 2:66dbf3ae0f89
- Parent:
- 0:366fa629ac27
diff -r 8a0e272ed8e6 -r 66dbf3ae0f89 ds1337.h --- a/ds1337.h Wed Oct 28 23:20:29 2015 +0000 +++ b/ds1337.h Thu Oct 29 02:38:18 2015 +0000 @@ -7,6 +7,7 @@ #define DS1337_ADDR 0x68<<1 /// I2C library needs address shifted left by 1-bit #define DS1337_BUFFER_SIZE 16 /// Max address for DS1337 #define DS1337_I2C_FCY 300000 /// I2C frequency +#define ERR_BUFFER_LEN 40 typedef struct tm Time; @@ -18,7 +19,7 @@ public: /// String containing error code when command fails - char err[30]; + char err[ERR_BUFFER_LEN]; /** Create DS1337 instance on the specified pins of I2C bus */