HAL_ChibiOS: enable CAN stats on AP_Periph for bxCAN interface

this allows for dead interface detection
This commit is contained in:
Andrew Tridgell 2023-09-01 19:05:28 +10:00
parent 78faa5c6b0
commit bc373354fc
2 changed files with 2 additions and 2 deletions

View File

@ -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
*/

View File

@ -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)