From 22c0113f9cdb0b5409bcfc88a36ae6e150452b30 Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Fri, 22 Nov 2024 01:46:48 +0000 Subject: [PATCH] pw_bluetooth_proxy: Remove unnecessary writer for disconnect event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Can just be normal view since we don't need to rewrite. This also improves verification of incoming data. Change-Id: Ib500dc7f2687ec31cd64f34d87d5b3d0a660d60f Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/249716 Reviewed-by: Ben Lawson Commit-Queue: Austin Foxley Lint: Lint 🤖 Docs-Not-Needed: Ben Lawson --- pw_bluetooth_proxy/acl_data_channel.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pw_bluetooth_proxy/acl_data_channel.cc b/pw_bluetooth_proxy/acl_data_channel.cc index 78fe8a4e0..c145ca2b4 100644 --- a/pw_bluetooth_proxy/acl_data_channel.cc +++ b/pw_bluetooth_proxy/acl_data_channel.cc @@ -189,8 +189,8 @@ void AclDataChannel::HandleNumberOfCompletedPacketsEvent( void AclDataChannel::HandleDisconnectionCompleteEvent( H4PacketWithHci&& h4_packet) { - Result dc_event = - MakeEmbossView( + Result dc_event = + MakeEmbossView( h4_packet.GetHciSpan()); if (!dc_event.ok()) { PW_LOG_ERROR(