mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 11:53:25 +08:00
pm_idle: fix when prepare failed, possible relax error
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user