fix: remove debug message

This commit is contained in:
Strix 2023-10-15 18:06:35 +02:00
parent 926639387c
commit b765d3eed4
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -10,7 +10,6 @@ impl TryFrom<Vec<u8>> for RawPacket {
return Err(io::Error::new(io::ErrorKind::InvalidData, "Can't parse data into RawPacket"))
}
let data_length = (((data[0x12] as u16) << 8) | data[0x13] as u16) as usize;
println!("LENGTH {data_length}");
if data.len() < 0x14 + data_length {
return Err(io::Error::new(io::ErrorKind::InvalidData, "Can't parse data into RawPacket"))
}