Skip to content

Commit 7150436

Browse files
bigdinotechcalvinatintel
authored andcommitted
CurieRTC - SetTime example not setting RTC
RTC not being set because the wrong call was being made should call RTC.set(t) to set the hardware RTC instead of setTime(t).
1 parent 25acb32 commit 7150436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/CurieRTC/examples/SetTime/SetTime.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void setup() {
1616
// get the date and time the compiler was run
1717
if (getDate(__DATE__) && getTime(__TIME__)) {
1818
t = makeTime(tm);
19-
setTime(t);
19+
RTC.set(t);
2020
parse = true;
2121
config = true;
2222
}

0 commit comments

Comments
 (0)