From 26de4cb9d6e7c335c18f3f5e0a4da7c4170851f3 Mon Sep 17 00:00:00 2001 From: Piotr Esden-Tempski Date: Mon, 19 Mar 2012 23:09:18 -0700 Subject: [PATCH] Constand value for resetting CAN_TDTxR was too big. Fixed. --- lib/stm32/f1/can.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stm32/f1/can.c b/lib/stm32/f1/can.c index 151c47cd..fc7e0e75 100644 --- a/lib/stm32/f1/can.c +++ b/lib/stm32/f1/can.c @@ -228,7 +228,7 @@ int can_transmit(u32 canport, u32 id, bool ext, bool rtr, u8 length, u8 *data) CAN_TIxR(canport, mailbox) |= CAN_TIxR_RTR; /* Set */ /* Set the DLC. */ - CAN_TDTxR(canport, mailbox) &= 0xFFFFFFFF0; + CAN_TDTxR(canport, mailbox) &= 0xFFFFFFF0; CAN_TDTxR(canport, mailbox) |= length & CAN_TDTxR_DLC_MASK; /* Set the data. */