From 5bae8b58c6bb2dd8d544bee29d2b86823a43e3ae Mon Sep 17 00:00:00 2001 From: zhushengle Date: Fri, 23 Sep 2022 09:29:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=86=85=E6=A0=B8?= =?UTF-8?q?=E4=BD=8E=E5=8A=9F=E8=80=97=E6=A8=A1=E5=BC=8F=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=90=8E=E5=90=8C=E6=AD=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close #I5SNYA Signed-off-by: zhushengle Change-Id: I4df212bbf3e522ea371b5340848ba5adf2668ad7 --- components/power/los_pm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/power/los_pm.c b/components/power/los_pm.c index 2a691970..8d4df79c 100644 --- a/components/power/los_pm.c +++ b/components/power/los_pm.c @@ -130,7 +130,7 @@ STATIC BOOL OsPmTickTimerStop(LosPmCB *pm) LosPmTickTimer *tickTimer = pm->tickTimer; if ((tickTimer == NULL) || (tickTimer->tickLock == NULL) || - (pm->pmMode == LOS_SYS_NORMAL_SLEEP)) { + (pm->sysMode == LOS_SYS_NORMAL_SLEEP)) { return FALSE; } @@ -264,6 +264,7 @@ STATIC UINT32 OsPmSuspendSleep(LosPmCB *pm) if (pm->sysctrl->suspendCheck != NULL) { pm->sysctrl->suspendCheck(mode); + pm->sysMode = pm->pmMode; } tickTimerStop = OsPmTickTimerStop(pm);