mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 00:13:34 +08:00
aerofc: Reboot after crash
This commit is contained in:
committed by
Lorenz Meier
parent
c866e745cd
commit
523688e43c
@@ -366,3 +366,9 @@ __EXPORT int board_app_initialize(uintptr_t arg)
|
||||
return OK;
|
||||
}
|
||||
|
||||
__EXPORT void board_crashdump(uintptr_t currentsp, FAR void *tcb, FAR const uint8_t *filename, int lineno)
|
||||
{
|
||||
#if defined(CONFIG_BOARD_RESET_ON_CRASH)
|
||||
px4_systemreset(false);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user