mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-03-08 15:05:55 -05:00
fw: Run forever_redflash() when aborting from asserts
Should be more vissible than an eternal loop. Signed-off-by: Daniel Lublin <daniel@lublin.se>
This commit is contained in:
parent
bbbe1e2f31
commit
3a7ec9b9a0
@ -4,6 +4,7 @@
|
||||
*/
|
||||
|
||||
#include "assert.h"
|
||||
#include "led.h"
|
||||
#include "lib.h"
|
||||
|
||||
void __assert_fail(const char *__assertion, const char *__file,
|
||||
@ -19,6 +20,6 @@ void __assert_fail(const char *__assertion, const char *__file,
|
||||
htif_puts(__function);
|
||||
htif_lf();
|
||||
|
||||
for (;;);
|
||||
forever_redflash();
|
||||
// Not reached
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user