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).

pull/190/head
Przemek Wirkus 2014-02-24 15:34:35 +00:00
parent 37e1b85540
commit c74365cb83
1 changed files with 5 additions and 1 deletions

View File

@ -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
}