Skip to content

Commit

Permalink
[systemtime] dont init rtc again during set (#28651)
Browse files Browse the repository at this point in the history
  • Loading branch information
pankore authored and pull[bot] committed Nov 30, 2023
1 parent 3a4a3e6 commit eb0b07a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/platform/Ameba/SystemTimeSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ CHIP_ERROR ClockImpl::SetClock_RealTime(Microseconds64 aNewCurTime)
struct rtkTimeVal tv;
tv.tv_sec = static_cast<uint32_t>(aNewCurTime.count() / UINT64_C(1000000));
tv.tv_usec = static_cast<uint32_t>(aNewCurTime.count() % UINT64_C(1000000));
matter_rtc_init();
matter_rtc_write(tv.tv_sec);

return CHIP_NO_ERROR;
Expand Down

0 comments on commit eb0b07a

Please sign in to comment.