2009-01-25 08:05 PM
Bug in stm32f10x_can.c
2011-05-17 04:00 AM
The following function seems to have a wrong argument for the parameter check:
u8 CAN_Transmit(CanTxMsg* TxMessage) { u8 TransmitMailbox = 0; /* Check the parameters */ assert_param(IS_CAN_STDID(TxMessage->StdId)); assert_param(IS_CAN_EXTID(TxMessage->StdId)); assert_param(IS_CAN_IDTYPE(TxMessage->IDE)); assert_param(IS_CAN_RTR(TxMessage->RTR)); assert_param(IS_CAN_DLC(TxMessage->DLC)); ... } The second time it must be TxMessage->ExdId, since the macro's name is also IS_CAN_EXTID. Btw: Is this the right place to post such things?! Michael