Skip to content

Commit a5727ca

Browse files
Merge pull request #26 from manchoz/patch-1
Read time from RTC
2 parents 2ad4598 + e45292b commit a5727ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/RTC/RTC.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void loop() {
6262
Serial.print(":");
6363
Serial.println(MachineControl_RTCController.getSeconds());
6464

65-
time_t utc_time = time(NULL);
65+
time_t utc_time = MachineControl_RTCController.getEpoch();
6666
Serial.print("Date as UTC time: ");
6767
Serial.println(utc_time);
6868
Serial.println();

0 commit comments

Comments
 (0)