Skip to content

Commit

Permalink
tests/periph_pm: print current PM blockers on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
benemorius committed Jun 23, 2019
1 parent 3451bef commit 9cb8768
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/periph_pm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,13 @@ int main(void)
"save more power, but may require an event/interrupt to wake up\n"
"the CPU. Reset the CPU if needed.\n",
PM_NUM_MODES - 1);

/* In case the system boots into an unresponsive shell, at least display
* the state of PM blockers so that the user will know which power mode has
* been entered and is presumably responsible for the unresponsive shell.
*/
cmd_pm(0, NULL);

#else
puts("This application allows you to test the CPU power management.\n"
"Layered support is not unavailable for this CPU. Reset the CPU if\n"
Expand Down

0 comments on commit 9cb8768

Please sign in to comment.