LED display output

This commit is contained in:
NIIBE Yutaka
2012-06-18 12:44:37 +09:00
parent de51fc2fd4
commit 6a4d7fa108

View File

@@ -398,9 +398,10 @@ main (int argc, char *argv[])
led_inverted = 1;
break;
case LED_FINISH_COMMAND:
m = chEvtWaitOneTimeout (ALL_EVENTS, LED_TIMEOUT_STOP);
led_inverted = 0;
set_led (0);
if ((m = chEvtWaitOneTimeout (ALL_EVENTS, LED_TIMEOUT_INTERVAL)))
if (m)
goto got_it;
break;
case LED_FATAL: