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
|
self.raw_socket
|
||||||
.command(&mut self.bus, register::socketn::Command::Receive)?;
|
.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,
|
// If we couldn't read the whole frame, drop it instead.
|
||||||
// drop the frame.
|
|
||||||
if received_frame_size < expected_frame_size {
|
if received_frame_size < expected_frame_size {
|
||||||
Ok(0)
|
Ok(0)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue