Skip to content

Commit 5f15719

Browse files
calebchalmerssalkinium
authored andcommitted
Replace memcpy with copy assignment in LPC CAN
1 parent d7bd13e commit 5f15719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modm/platform/can/lpc/c_can.cpp.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ modm::platform::Can::getMessage(can::Message & message)
311311
return false;
312312
}
313313
else {
314-
memcpy(&message, &rxQueue.get(), sizeof(message));
314+
message = rxQueue.get();
315315
rxQueue.pop();
316316

317317
// Check for other messages in MOBs

0 commit comments

Comments
 (0)