Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorenkovnl committed May 2, 2024
1 parent e6b8d01 commit 08563ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/socketcan_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ void SocketCanBridge::send(const can_msgs::msg::Frame & msg)
can_frame frame;
frame.can_id = msg.id;
frame.len = msg.dlc;
if(msg.is_extended)
{
if (msg.is_extended) {
frame.can_id |= CAN_EFF_FLAG;
}
std::copy(msg.data.begin(), msg.data.end(), frame.data);
Expand Down

0 comments on commit 08563ce

Please sign in to comment.