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:
Michael Cardell Widerkrantz 2023-02-27 17:19:26 +01:00 committed by Daniel Lublin
parent bbbe1e2f31
commit 3a7ec9b9a0
No known key found for this signature in database
GPG Key ID: 75BD0FEB8D3E7830

View File

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