Skip to content

Commit

Permalink
remove broken fail check
Browse files Browse the repository at this point in the history
  • Loading branch information
dragazo committed Apr 25, 2023
1 parent f95e860 commit df1ac69
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,6 @@ where
}

let payload_len = received_len - outer_cursor;
if payload_len < 14 {
#[cfg(feature = "rttdebug")]
rprintln!(
"bad report: {:?}",
&self.packet_recv_buf[..PACKET_HEADER_LENGTH]
);

return;
}

// there may be multiple reports per payload
while outer_cursor < payload_len {
Expand Down

0 comments on commit df1ac69

Please sign in to comment.