diff options
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/power/pm_changestate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/drivers/power/pm_changestate.c b/nuttx/drivers/power/pm_changestate.c index 27d17ce88..f64760f55 100644 --- a/nuttx/drivers/power/pm_changestate.c +++ b/nuttx/drivers/power/pm_changestate.c @@ -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; } |