Skip to content

Commit a7c9a2f

Browse files
authored
Merge pull request arduino#69 from karlsoderby/main
Update RTC Library (Unix function)
2 parents bda4a18 + 59a26ae commit a7c9a2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/RTC/src/RTClock.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ int RTCTime::getMinutes() { return minutes; }
347347
int RTCTime::getSeconds() { return seconds; }
348348
DayOfWeek RTCTime::getDayOfWeek() { return day_of_week; }
349349

350-
time_t RTCTime::getUnixTime() { Serial.println(stime.tm_year);Serial.println(stime.tm_mon);Serial.println(stime.tm_mday); return mktime ( (struct tm *)&stime ); }
350+
time_t RTCTime::getUnixTime() { return mktime ( (struct tm *)&stime ); }
351351
struct tm RTCTime::getTmTime() { return (struct tm)stime; }
352352

353353
/* -------------------------------------------------------------------------- */

0 commit comments

Comments
 (0)