From a8ab20abd95b9f106250877d5abc2f5cb7e6029d Mon Sep 17 00:00:00 2001 From: bugobliterator Date: Sat, 24 Jul 2021 00:17:32 +0530 Subject: [PATCH] AP_HAL_ChibiOS: allow sending stats via mavftp on AP_Periph --- libraries/AP_HAL_ChibiOS/CANFDIface.cpp | 2 +- libraries/AP_HAL_ChibiOS/CANFDIface.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/CANFDIface.cpp b/libraries/AP_HAL_ChibiOS/CANFDIface.cpp index 152cdd5020..471b81da7a 100644 --- a/libraries/AP_HAL_ChibiOS/CANFDIface.cpp +++ b/libraries/AP_HAL_ChibiOS/CANFDIface.cpp @@ -1031,7 +1031,7 @@ bool CANIface::select(bool &read, bool &write, return false; } -#if !defined(HAL_BUILD_AP_PERIPH) && !defined(HAL_BOOTLOADER_BUILD) +#if !defined(HAL_BOOTLOADER_BUILD) void CANIface::get_stats(ExpandingString &str) { CriticalSectionLocker lock; diff --git a/libraries/AP_HAL_ChibiOS/CANFDIface.h b/libraries/AP_HAL_ChibiOS/CANFDIface.h index ea94267dc6..25cc3b0539 100644 --- a/libraries/AP_HAL_ChibiOS/CANFDIface.h +++ b/libraries/AP_HAL_ChibiOS/CANFDIface.h @@ -221,7 +221,7 @@ public: bool set_event_handle(AP_HAL::EventHandle* handle) override; #endif -#if !defined(HAL_BUILD_AP_PERIPH) && !defined(HAL_BOOTLOADER_BUILD) +#if !defined(HAL_BOOTLOADER_BUILD) // fetch stats text and return the size of the same, // results available via @SYS/can0_stats.txt or @SYS/can1_stats.txt void get_stats(ExpandingString &str) override;