From 867b57a1d2e528a19cc5565d99d2b19435a3aa4f Mon Sep 17 00:00:00 2001 From: molnarkares Date: Sun, 3 Mar 2013 16:06:14 +0100 Subject: [PATCH] can.c >> bug fixed in receive --- lib/stm32/can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stm32/can.c b/lib/stm32/can.c index 7fde5852..02528a9c 100644 --- a/lib/stm32/can.c +++ b/lib/stm32/can.c @@ -454,7 +454,7 @@ void can_receive(u32 canport, u8 fifo, bool release, u32 *id, bool *ext, *rtr = false; /* Get filter match ID. */ - *fmi = ((CAN_RDTxR(canport, fifo_id) & CAN_RDTxR_FMI_MASK) > + *fmi = ((CAN_RDTxR(canport, fifo_id) & CAN_RDTxR_FMI_MASK) >> CAN_RDTxR_FMI_SHIFT); /* Get data length. */