mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 01:41:36 +08:00
PM update
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4982 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -217,6 +217,10 @@ int pm_changestate(enum pm_state_e newstate)
|
||||
|
||||
pm_changeall(newstate);
|
||||
g_pmglobals.state = newstate;
|
||||
|
||||
/* Restore the interrupt state */
|
||||
|
||||
irqrestore(flags);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user