Skip to content

Commit

Permalink
ptp send uses frame length to copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Harishguna Satgunarajah committed Sep 20, 2023
1 parent f8c8f2e commit 98597be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ethernet/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ impl<'a, 'rx, 'tx> EthernetDMA<'rx, 'tx> {
if let Some(mut tx_token) = tx_option {
tx_token.set_meta(meta.into());
tx_token.consume(frame.len(), |buf| {
buf.copy_from_slice(&frame);
buf[..frame.len()].copy_from_slice(&frame);
});
}
}
Expand Down

0 comments on commit 98597be

Please sign in to comment.