From 891142b6d0227a66bac292c774b6db99e964d65c Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Fri, 28 Nov 2025 17:39:58 +0100 Subject: [PATCH] fix: unused warning when _BLE_TRACE_ undefined Signed-off-by: Frederic Pillon --- src/utility/HCI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility/HCI.cpp b/src/utility/HCI.cpp index 32adfcc4..90141eb9 100644 --- a/src/utility/HCI.cpp +++ b/src/utility/HCI.cpp @@ -733,13 +733,13 @@ void HCIClass::handleAclDataPkt(uint8_t /*plen*/, uint8_t pdata[]) uint16_t dlen; // dlen + 4 = plen (dlen is the size of the ACL SDU) } *aclHeader = (HCIACLHdr*)pdata; - uint8_t bcFlag = (aclHeader->connectionHandleWithFlags & 0xc000) >> 14; uint8_t pbFlag = (aclHeader->connectionHandleWithFlags & 0x3000) >> 12; uint16_t connectionHandle = aclHeader->connectionHandleWithFlags & 0x0fff; uint8_t *aclSdu = &pdata[sizeof(HCIACLHdr)]; #ifdef _BLE_TRACE_ + uint8_t bcFlag = (aclHeader->connectionHandleWithFlags & 0xc000) >> 14; Serial.print("Acl packet bcFlag = "); Serial.print(bcFlag, BIN); Serial.print(" pbFlag = ");