mirror of https://github.com/ArduPilot/ardupilot
HAL_ChibiOS: fixed bootloader build
This commit is contained in:
parent
0ef66659ce
commit
ce68e0fbb5
|
@ -438,10 +438,14 @@ void system_halt_hook(void)
|
||||||
// hook for stack overflow
|
// hook for stack overflow
|
||||||
void stack_overflow(thread_t *tp)
|
void stack_overflow(thread_t *tp)
|
||||||
{
|
{
|
||||||
|
#if !defined(HAL_BOOTLOADER_BUILD) && !defined(IOMCU_FW)
|
||||||
extern void AP_stack_overflow(const char *thread_name);
|
extern void AP_stack_overflow(const char *thread_name);
|
||||||
AP_stack_overflow(tp->name);
|
AP_stack_overflow(tp->name);
|
||||||
// if we get here then we are armed and got a stack overflow. We
|
// if we get here then we are armed and got a stack overflow. We
|
||||||
// will report an internal error and keep trying to fly. We are
|
// will report an internal error and keep trying to fly. We are
|
||||||
// quite likely to crash anyway due to memory corruption. The
|
// quite likely to crash anyway due to memory corruption. The
|
||||||
// watchdog data should record the thread name and fault type
|
// watchdog data should record the thread name and fault type
|
||||||
|
#else
|
||||||
|
(void)tp;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue