From ef3d42ee9d6d5c53592be2d4268643d3530e0e08 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 2 Sep 2023 11:50:21 +1000 Subject: [PATCH] HAL_ChibiOS: fixed bootloader build with F4 CAN --- libraries/AP_HAL_ChibiOS/CanIface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/CanIface.cpp b/libraries/AP_HAL_ChibiOS/CanIface.cpp index 57b39d110a..f7edd22198 100644 --- a/libraries/AP_HAL_ChibiOS/CanIface.cpp +++ b/libraries/AP_HAL_ChibiOS/CanIface.cpp @@ -496,7 +496,9 @@ void CANIface::handleTxMailboxInterrupt(uint8_t mailbox_index, bool txok, const if (txok && !txi.pushed) { txi.pushed = true; PERF_STATS(stats.tx_success); +#if !defined(HAL_BOOTLOADER_BUILD) stats.last_transmit_us = timestamp_us; +#endif } }