From de4218147e592889e75bed68ae303a82f3ced0ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 25 Jan 2018 10:41:43 +0100 Subject: [PATCH] BV HiZ: replace wait_space with user_input_get --- lib/busvoodoo_hiz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/busvoodoo_hiz.c b/lib/busvoodoo_hiz.c index 55abd6d..9d04880 100644 --- a/lib/busvoodoo_hiz.c +++ b/lib/busvoodoo_hiz.c @@ -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