mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Add NORETURN to __fatal_error
This commit is contained in:
parent
a1c9e8a6f6
commit
6cb7288def
@ -183,7 +183,7 @@ void flash_error(int n) {
|
||||
led_state(LED_RED, 0);
|
||||
}
|
||||
|
||||
void __fatal_error(const char *msg) {
|
||||
void NORETURN __fatal_error(const char *msg) {
|
||||
FIL fp;
|
||||
if (f_open(&fp, "ERROR.LOG",
|
||||
FA_WRITE|FA_CREATE_ALWAYS) == FR_OK) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user