HAL_ChibiOS: fixed bootloader build with F4 CAN

This commit is contained in:
Andrew Tridgell 2023-09-02 11:50:21 +10:00
parent a732f846e6
commit ef3d42ee9d
1 changed files with 2 additions and 0 deletions

View File

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