diff --git a/firmware/system.c b/firmware/system.c index bb541493fa..7f7593e354 100644 --- a/firmware/system.c +++ b/firmware/system.c @@ -20,7 +20,7 @@ #include "config.h" #include -#include +#include "led.h" #define default_interrupt(name,number) \ extern __attribute__((weak,alias("UIE" #number))) void name (void); void UIE##number (void) @@ -317,8 +317,11 @@ void UIE (unsigned int pc) /* Unexpected Interrupt or Exception */ while (1) { - led_toggle (); - + bool state = TRUE; + + led (state); + state = state?FALSE:TRUE; + for (i = 0; i < 240000; ++i); } }