Bug in stm32f10x_can.c
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2009-01-25 8:05 PM
Posted on January 26, 2009 at 05:05
Bug in stm32f10x_can.c
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-05-17 4:00 AM
Posted on May 17, 2011 at 13:00
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