Log if h4 type is unknown

This commit is contained in:
Jackson Coxson
2025-10-14 10:53:05 -06:00
parent 7507b9609c
commit b0f871af99
2 changed files with 3 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
use std::pin::Pin;
use futures::Stream;
use log::{debug, warn};
use log::warn;
use crate::{Idevice, IdeviceError, IdeviceService, obf};
@@ -148,13 +148,6 @@ impl BtPacketLoggerClient {
let kind = BtPacketKind::from_byte(frame[off]);
let payload = &frame[off + 1..];
// soft advisory check
let advisory = hdr.length as usize;
let actual = 1 + payload.len();
if advisory != actual {
debug!("BTPacketLogger advisory length {} != actual {}", advisory, actual);
}
// make H4 buffer
let mut h4 = Vec::with_capacity(1 + payload.len());
if let Some(t) = kind.h4_type() {