From aa97e7b49a2e65797fefb56a6f25591bfa06a9d5 Mon Sep 17 00:00:00 2001 From: Thomas Stilwell Date: Sat, 22 Jun 2019 17:33:41 -0700 Subject: [PATCH] tests/periph_pm: be more verbose about what pm_set() is doing --- tests/periph_pm/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/periph_pm/main.c b/tests/periph_pm/main.c index 949d8814d5..de256e64a2 100644 --- a/tests/periph_pm/main.c +++ b/tests/periph_pm/main.c @@ -163,10 +163,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; }