Skip to content

Commit

Permalink
tests/periph_pm: be more verbose about what pm_set() is doing
Browse files Browse the repository at this point in the history
  • Loading branch information
benemorius committed Jun 23, 2019
1 parent 9cb8768 commit 5161072
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/periph_pm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,14 @@ static int cmd_set(int argc, char **argv)
return 1;
}

printf("CPU will enter power mode %d.\n", mode);
printf("CPU is entering power mode %d.\n", mode);
printf("Now waiting for a wakeup event...\n");
fflush(stdout);

pm_set(mode);
/* execution stops here until anything (like shell input) wakes the CPU */

printf("CPU has returned from power mode %d.\n", mode);

return 0;
}
Expand Down

0 comments on commit 5161072

Please sign in to comment.