Skip to content

Commit d33c0a6

Browse files
committed
STM32: Pass correct id to can_irq() for CAN3
1 parent 2e1c2a1 commit d33c0a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

targets/TARGET_STM/can_api.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,15 +579,15 @@ void CAN2_SCE_IRQHandler(void)
579579
#if defined(CAN3_BASE) && defined(CAN_3)
580580
void CAN3_RX0_IRQHandler(void)
581581
{
582-
can_irq(CAN_3, 1);
582+
can_irq(CAN_3, 2);
583583
}
584584
void CAN3_TX_IRQHandler(void)
585585
{
586-
can_irq(CAN_3, 1);
586+
can_irq(CAN_3, 2);
587587
}
588588
void CAN3_SCE_IRQHandler(void)
589589
{
590-
can_irq(CAN_3, 1);
590+
can_irq(CAN_3, 2);
591591
}
592592
#endif
593593
#endif // else

0 commit comments

Comments
 (0)