Skip to content

Commit

Permalink
Replace memcpy with copy assignment in LPC CAN
Browse files Browse the repository at this point in the history
  • Loading branch information
calebchalmers authored and salkinium committed Jul 14, 2024
1 parent d7bd13e commit 5f15719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modm/platform/can/lpc/c_can.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ modm::platform::Can::getMessage(can::Message & message)
return false;
}
else {
memcpy(&message, &rxQueue.get(), sizeof(message));
message = rxQueue.get();
rxQueue.pop();

// Check for other messages in MOBs
Expand Down

0 comments on commit 5f15719

Please sign in to comment.