Fixing comment

This commit is contained in:
Ryan Summers 2022-04-14 14:16:51 +02:00 committed by kellerkindt
commit 9196d005d5

View file

@ -105,8 +105,7 @@ impl<SpiBus: Bus> RawDevice<SpiBus> {
self.raw_socket
.command(&mut self.bus, register::socketn::Command::Receive)?;
// If we couldn't read the whole check sequence or if we read less bytes than expected,
// drop the frame.
// If we couldn't read the whole frame, drop it instead.
if received_frame_size < expected_frame_size {
Ok(0)
} else {