Skip to content

Commit ce9df0c

Browse files
authored
Merge pull request #56 from jpmeijers/master
Change getEpoch to return type time_t
2 parents d8503ff + 257e4fc commit ce9df0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/RTCZero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ void RTCZero::setAlarmDate(uint8_t day, uint8_t month, uint8_t year)
370370
}
371371
}
372372

373-
uint32_t RTCZero::getEpoch()
373+
time_t RTCZero::getEpoch()
374374
{
375375
RTCreadRequest();
376376
RTC_MODE2_CLOCK_Type clockTime;

src/RTCZero.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class RTCZero {
9191

9292
/* Epoch Functions */
9393

94-
uint32_t getEpoch();
94+
time_t getEpoch();
9595
uint32_t getY2kEpoch();
9696
void setEpoch(uint32_t ts);
9797
void setY2kEpoch(uint32_t ts);

0 commit comments

Comments
 (0)