Skip to content

Commit

Permalink
Fix linker error when HW RTC is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tomikaa87 committed Jan 4, 2021
1 parent a5f2841 commit 30ea180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SystemClock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ void SystemClock::updateRtc()
);
}

#endif // IOT_SYSTEM_CLOCK_HW_RTC

void SystemClock::sychronizeCLibClock()
{
_log.info("synchronizing clock of C Runtime Library");
Expand All @@ -188,8 +190,6 @@ void SystemClock::sychronizeCLibClock()
_log.debug("result of time(): %ld", time(nullptr));
}

#endif // IOT_SYSTEM_CLOCK_HW_RTC

bool SystemClock::isDst(const std::time_t t)
{
const auto tm = gmtime(&t);
Expand Down

0 comments on commit 30ea180

Please sign in to comment.