Skip to content

Commit

Permalink
remove white space
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Aebli committed Nov 21, 2024
1 parent 2086105 commit c88a50a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/frames/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,8 @@ impl<'a> TryFrom<&'a [u8]> for Frame<'a> {
if *data.last().ok_or(FrameError::LengthShort)? != 0x16 {
return Err(FrameError::InvalidStopByte);
}

let control_field = *data.get(4).ok_or(FrameError::LengthShort)?;

let address_field = *data.get(5).ok_or(FrameError::LengthShort)?;

match control_field {
0x53 => Ok(Frame::ControlFrame {
function: Function::try_from(control_field)?,
Expand Down

0 comments on commit c88a50a

Please sign in to comment.