Fixing comment
This commit is contained in:
parent
4afe9f6724
commit
9196d005d5
1 changed files with 1 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue