HAL_ChibiOS: enable CAN stats on AP_Periph for bxCAN interface
this allows for dead interface detection
This commit is contained in:
parent
78faa5c6b0
commit
bc373354fc
@ -140,7 +140,7 @@ class ChibiOS::CANIface : public AP_HAL::CANIface
|
||||
|
||||
void initOnce(bool enable_irq);
|
||||
|
||||
#if !defined(HAL_BUILD_AP_PERIPH) && !defined(HAL_BOOTLOADER_BUILD)
|
||||
#if !defined(HAL_BOOTLOADER_BUILD)
|
||||
/*
|
||||
additional statistics
|
||||
*/
|
||||
|
@ -77,7 +77,7 @@
|
||||
#define Debug(fmt, args...)
|
||||
#endif
|
||||
|
||||
#if !defined(HAL_BUILD_AP_PERIPH) && !defined(HAL_BOOTLOADER_BUILD)
|
||||
#if !defined(HAL_BOOTLOADER_BUILD)
|
||||
#define PERF_STATS(x) (x++)
|
||||
#else
|
||||
#define PERF_STATS(x)
|
||||
|
Loading…
Reference in New Issue
Block a user