Skip to content

Commit 59a26ae

Browse files
authored
Update RTC Library (Unix function)
`getUnixTime()` function contained a leftover debug print function. This PR removes it.
1 parent bda4a18 commit 59a26ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/RTC/src/RTClock.cpp

Lines changed: 1 addition & 1 deletion
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)