BV HiZ: replace wait_space with user_input_get

This commit is contained in:
King Kévin 2018-01-25 10:41:43 +01:00
parent 37b02552fd
commit de4218147e
1 changed files with 2 additions and 2 deletions

View File

@ -641,7 +641,7 @@ static void busvoodoo_hiz_command_test_self(void* argument)
(void)argument; // we won't use the argument
printf("performing self-test\n");
printf("remove all cables from connectors and press space to start (or any other key to abort)\n");
if (wait_space()) {
if (' '==user_input_get()) { // space entered
if (busvoodoo_hiz_test_self()) { // perform self-test
led_blink(0, 1.0); // show blue OK LED
printf("self-test succeeded\n"); // notify user
@ -662,7 +662,7 @@ static void busvoodoo_hiz_command_test_pins(void* argument)
(void)argument; // we won't use the argument
printf("performing pins test\n");
printf("remove all cables from connectors and press space to start (or any other key to abort)\n");
if (wait_space()) {
if (' '==user_input_get()) { // space entered
if (busvoodoo_hiz_test_pins()) { // perform pin test
led_blink(0, 1.0); // show blue OK LED
printf("pins test succeeded\n"); // notify user