diff options
| author | D Delmar Davis <don@suspectdevices.com> | 2018-03-04 08:37:45 -0800 |
|---|---|---|
| committer | D Delmar Davis <don@suspectdevices.com> | 2018-03-04 08:37:45 -0800 |
| commit | fc62e8d29f215b0e85cb62b1273636bc2f2686ba (patch) | |
| tree | 1d2eff36c9aa20c75ead61edd645a086317c9701 /src | |
| parent | 2b6b1e0ae040a5733d9dbe27ad48dc5fd913c6ea (diff) | |
Platform IO Git Adjustment
Diffstat (limited to 'src')
| -rwxr-xr-x | src/Clock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Clock.cpp b/src/Clock.cpp index f168ade..c2618cb 100755 --- a/src/Clock.cpp +++ b/src/Clock.cpp @@ -102,7 +102,7 @@ void Clock::init() // if the rtc is set in the early 00s Set the and date to build time initially // otherwise assume that the battery was keeping it running appropriately. - if (!rtc.getYear()){ + if (rtc.getYear()>1){ rtc.setTime(build_hours,build_minutes,build_seconds); rtc.setDate(build_day, build_month, build_year); } |
