mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
pm_idle: fix when prepare failed, possible relax error
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
parent
43176bbade
commit
46d555e5d4
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ void pm_idle(pm_idle_handler_t handler)
|
|||
ret = pm_changestate(domain, newstate);
|
||||
if (ret < 0)
|
||||
{
|
||||
newstate = PM_NORMAL;
|
||||
newstate = oldstate;
|
||||
}
|
||||
|
||||
if (oldstate != newstate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue