Skip to content

Commit

Permalink
[systemtime] dont init rtc again during set (project-chip#28651)
Browse files Browse the repository at this point in the history
  • Loading branch information
pankore authored and HunsupJung committed Oct 23, 2023
1 parent 5f9b63e commit 6fb2611
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 6fb2611

Please sign in to comment.