Skip to content

Commit 5122615

Browse files
committed
Fix bug in example.
Closes #77.
1 parent 4ff3f0c commit 5122615

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/alarm_ex1/alarm_ex1.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ time_t compileTime()
7575
{
7676
const time_t FUDGE(10); //fudge factor to allow for upload time, etc. (seconds, YMMV)
7777
const char *compDate = __DATE__, *compTime = __TIME__, *months = "JanFebMarAprMayJunJulAugSepOctNovDec";
78-
char compMon[3], *m;
78+
char compMon[4], *m;
7979

8080
strncpy(compMon, compDate, 3);
8181
compMon[3] = '\0';

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=DS3232RTC
2-
version=1.2.10
2+
version=1.2.11
33
author=Jack Christensen <jack.christensen@outlook.com>
44
maintainer=Jack Christensen <jack.christensen@outlook.com>
55
sentence=Arduino Library for Maxim Integrated DS3232 and DS3231 Real-Time Clocks.

0 commit comments

Comments
 (0)