Skip to content

Commit

Permalink
Add depends to library.properties. Closes #5.
Browse files Browse the repository at this point in the history
Fix compiler warnings in example sketches.
  • Loading branch information
JChristensen committed Dec 31, 2019
1 parent 4cd43f1 commit 24970f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/PowerOutageLogger/PowerOutageLogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ time_t read32(uint8_t addr)
}

// Print time with time zone
void printTime(time_t t, char *tz)
void printTime(time_t t, const char *tz)
{
sPrintI00(hour(t));
sPrintDigits(minute(t));
Expand Down
3 changes: 1 addition & 2 deletions examples/rtcSet3/rtcSet3.ino
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ void loop()
time_t compileTime()
{
const uint32_t FUDGE(15); // fudge factor to allow for compile time (seconds, YMMV)
char *compDate = __DATE__, *compTime = __TIME__, *months = "JanFebMarAprMayJunJulAugSepOctNovDec";
const char *compDate = __DATE__, *compTime = __TIME__, *months = "JanFebMarAprMayJunJulAugSepOctNovDec";
char chMon[3], *m;
int d, y;
tmElements_t tm;
time_t t;

Expand Down
3 changes: 2 additions & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name=MCP79412RTC
version=1.1.0
version=1.0.2
author=Jack Christensen <[email protected]>
maintainer=Jack Christensen <[email protected]>
sentence=Arduino library for the Microchip MCP79411/12 Real-Time Clock/Calendar.
paragraph=Requires PJRC's improved Arduino Time Library, https://github.com/PaulStoffregen/Time
category=Timing
url=https://github.com/JChristensen/MCP79412RTC
architectures=avr
depends=Time

0 comments on commit 24970f2

Please sign in to comment.