X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fcore%2Fao_panic.c;h=b6ff65cccd9f18e46263407cc6d047fcfcf8ee7c;hp=cbfdf3999e01f17d3343c31dbb45b8a42066e372;hb=1c46c419704f661064d200432eb7efeeb11b3859;hpb=e9fab7dc99a0e7c22b511c5919adf7df85213252 diff --git a/src/core/ao_panic.c b/src/core/ao_panic.c index cbfdf399..b6ff65cc 100644 --- a/src/core/ao_panic.c +++ b/src/core/ao_panic.c @@ -24,6 +24,10 @@ #if !HAS_BEEP #define ao_beep(x) #endif +#if !LEDS_AVAILABLE +#define ao_led_on(x) +#define ao_led_off(x) +#endif static void ao_panic_delay(uint8_t n) @@ -53,7 +57,7 @@ ao_panic(uint8_t reason) } ao_beep(AO_BEEP_OFF); ao_panic_delay(2); -#pragma disable_warning 126 + for (n = 0; n < reason; n++) { ao_led_on(AO_LED_RED); ao_beep(AO_BEEP_MID);