Skip to content

Commit

Permalink
HAL_ChibiOS: enable CAN stats on AP_Periph for bxCAN interface
Browse files Browse the repository at this point in the history
this allows for dead interface detection
  • Loading branch information
tridge committed Sep 1, 2023
1 parent 3159a57 commit 7fb1ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/CANIface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_HAL_ChibiOS/CanIface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7fb1ca3

Please sign in to comment.