From c74365cb83cb80a03625c54bd7cfdde148f26d8b Mon Sep 17 00:00:00 2001 From: Przemek Wirkus Date: Mon, 24 Feb 2014 15:34:35 +0000 Subject: [PATCH] LED test completion notification changed. Now if board do not have LED4, target will only blink LED1 to indicate test success. If test fails LED1 will not blink. This behaviour will be changed in the future. Now it is mainly removing compilation error (LED4 not defined). --- libraries/tests/mbed/env/test_env.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/tests/mbed/env/test_env.cpp b/libraries/tests/mbed/env/test_env.cpp index 1fc3aa1c2d..1c86c03625 100644 --- a/libraries/tests/mbed/env/test_env.cpp +++ b/libraries/tests/mbed/env/test_env.cpp @@ -19,5 +19,9 @@ void notify_completion(bool success) { } printf("{{end}}" NL); - led_blink(success?LED1:LED4); +#ifdef LED4 + led_blink(success ? LED1 : LED4); +#else + led_blink(success ? LED1 : NC); +#endif }