tests/periph_pm: be more verbose about what pm_set() is doing

This commit is contained in:
Thomas Stilwell 2019-06-22 17:33:41 -07:00 committed by Alexandre Abadie
parent 90579e81c9
commit aa97e7b49a
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -163,10 +163,14 @@ static int cmd_set(int argc, char **argv)
return 1; 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); fflush(stdout);
pm_set(mode); 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; return 0;
} }