diff --git a/host/src/gatt.rs b/host/src/gatt.rs index 37bf7b15..6874b349 100644 --- a/host/src/gatt.rs +++ b/host/src/gatt.rs @@ -456,8 +456,6 @@ impl<'reference, T: Controller, const MAX_SERVICES: usize, const L2CAP_MTU: usiz GattClient<'reference, T, MAX_SERVICES, L2CAP_MTU> { async fn send_att_data(&self, data: Att<'_>) -> Result<(), BleHostError> { - // Check the data type without consuming it - let header = L2capHeader { channel: crate::types::l2cap::L2CAP_CID_ATT, length: data.size() as u16,