Merge 8b44c977bbd0c12e814655a7f997a6d182388a47 into 0461e2ff88369c3da0d4caced31e8488f53376cd

This commit is contained in:
diplfranzhoepfinger 2025-02-27 14:17:57 +01:00 committed by GitHub
commit bb7d64b02e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,7 +63,9 @@ static inline uint32_t twai_hal_decode_interrupt(twai_hal_context_t *hal_ctx)
}
//Transmit interrupt set whenever TX buffer becomes free
#ifdef CONFIG_TWAI_ERRATA_FIX_TX_INTR_LOST
if ((interrupts & TWAI_LL_INTR_TI || hal_ctx->state_flags & TWAI_HAL_STATE_FLAG_TX_BUFF_OCCUPIED) && status & TWAI_LL_STATUS_TBS) {
if ((interrupts & TWAI_LL_INTR_TI || hal_ctx->state_flags & TWAI_HAL_STATE_FLAG_TX_BUFF_OCCUPIED)
&& status & TWAI_LL_STATUS_TBS
&& !(state_flags & TWAI_HAL_STATE_FLAG_BUS_OFF)) {
#else
if (interrupts & TWAI_LL_INTR_TI) {
#endif