aerofc: Reboot after crash

This commit is contained in:
José Roberto de Souza
2017-01-24 00:06:12 +01:00
committed by Lorenz Meier
parent c866e745cd
commit 523688e43c
2 changed files with 8 additions and 1 deletions
@@ -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
}