Skip to content

Commit 24970f2

Browse files
committed
Add depends to library.properties. Closes #5.
Fix compiler warnings in example sketches.
1 parent 4cd43f1 commit 24970f2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

examples/PowerOutageLogger/PowerOutageLogger.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ time_t read32(uint8_t addr)
167167
}
168168

169169
// Print time with time zone
170-
void printTime(time_t t, char *tz)
170+
void printTime(time_t t, const char *tz)
171171
{
172172
sPrintI00(hour(t));
173173
sPrintDigits(minute(t));

examples/rtcSet3/rtcSet3.ino

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ void loop()
3030
time_t compileTime()
3131
{
3232
const uint32_t FUDGE(15); // fudge factor to allow for compile time (seconds, YMMV)
33-
char *compDate = __DATE__, *compTime = __TIME__, *months = "JanFebMarAprMayJunJulAugSepOctNovDec";
33+
const char *compDate = __DATE__, *compTime = __TIME__, *months = "JanFebMarAprMayJunJulAugSepOctNovDec";
3434
char chMon[3], *m;
35-
int d, y;
3635
tmElements_t tm;
3736
time_t t;
3837

library.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name=MCP79412RTC
2-
version=1.1.0
2+
version=1.0.2
33
author=Jack Christensen <[email protected]>
44
maintainer=Jack Christensen <[email protected]>
55
sentence=Arduino library for the Microchip MCP79411/12 Real-Time Clock/Calendar.
66
paragraph=Requires PJRC's improved Arduino Time Library, https://github.com/PaulStoffregen/Time
77
category=Timing
88
url=https://github.com/JChristensen/MCP79412RTC
99
architectures=avr
10+
depends=Time

0 commit comments

Comments
 (0)