From 6fb26112a6336c87e10c3fb9246a7e76636814dc Mon Sep 17 00:00:00 2001 From: pankore <86098180+pankore@users.noreply.github.com> Date: Mon, 21 Aug 2023 12:39:24 +0800 Subject: [PATCH] [systemtime] dont init rtc again during set (#28651) --- src/platform/Ameba/SystemTimeSupport.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/platform/Ameba/SystemTimeSupport.cpp b/src/platform/Ameba/SystemTimeSupport.cpp index 5b7d03b212d672..2fee97276ec2e8 100644 --- a/src/platform/Ameba/SystemTimeSupport.cpp +++ b/src/platform/Ameba/SystemTimeSupport.cpp @@ -94,7 +94,6 @@ CHIP_ERROR ClockImpl::SetClock_RealTime(Microseconds64 aNewCurTime) struct rtkTimeVal tv; tv.tv_sec = static_cast(aNewCurTime.count() / UINT64_C(1000000)); tv.tv_usec = static_cast(aNewCurTime.count() % UINT64_C(1000000)); - matter_rtc_init(); matter_rtc_write(tv.tv_sec); return CHIP_NO_ERROR;