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 Jan 17, 2024
1 parent 6d92621 commit 1143379
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 1143379

Please sign in to comment.