Skip to content

Commit

Permalink
Removed outdated comment about fixed can message size
Browse files Browse the repository at this point in the history
  • Loading branch information
roeyb1 authored Nov 26, 2022
1 parent 5f6ba69 commit 129fe1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CAN/Can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Status CANBus::write(const Message& message)
const uint32_t transmit_mailbox = (hcan->TSR & (0b11ul << CAN_TSR_CODE)) >> 24;

hcan->sTxMailBox[transmit_mailbox].TIR = (message.id << CAN_TI0R_STID) | CAN_RTR_DATA;
hcan->sTxMailBox[transmit_mailbox].TDTR = message.size; // always only transmit 8 bytes for simplicity
hcan->sTxMailBox[transmit_mailbox].TDTR = message.size;
// #todo: set TDTR time bit?

hcan->sTxMailBox[transmit_mailbox].TDHR =
Expand Down Expand Up @@ -354,4 +354,4 @@ void CANBus::register_msg_received_callback(MessageReceivedCallbackType callback
message_received_callback = callback;
}

#endif // STM32
#endif // STM32

0 comments on commit 129fe1a

Please sign in to comment.