mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 16:23:56 -04:00
HAL_ChibiOS: output panics on system console
This commit is contained in:
parent
7c8cf0a39e
commit
f3f6972fc0
@ -507,9 +507,11 @@
|
||||
* @details This hook is invoked in case to a system halting error before
|
||||
* the system is halted.
|
||||
*/
|
||||
#define CH_CFG_SYSTEM_HALT_HOOK(reason) { \
|
||||
/* System halt code here.*/ \
|
||||
}
|
||||
|
||||
#define CH_CFG_SYSTEM_HALT_HOOK(reason) do { \
|
||||
extern int printf(const char *fmt, ...); \
|
||||
printf(reason); \
|
||||
} while(0)
|
||||
|
||||
/**
|
||||
* @brief Trace hook.
|
||||
|
Loading…
Reference in New Issue
Block a user