Skip to content

Commit 15bca41

Browse files
committed
fix: unused warning when _BLE_TRACE_ undefined
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 9f656c6 commit 15bca41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility/HCI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,13 +731,13 @@ void HCIClass::handleAclDataPkt(uint8_t /*plen*/, uint8_t pdata[])
731731
uint16_t dlen; // dlen + 4 = plen (dlen is the size of the ACL SDU)
732732
} *aclHeader = (HCIACLHdr*)pdata;
733733

734-
uint8_t bcFlag = (aclHeader->connectionHandleWithFlags & 0xc000) >> 14;
735734
uint8_t pbFlag = (aclHeader->connectionHandleWithFlags & 0x3000) >> 12;
736735
uint16_t connectionHandle = aclHeader->connectionHandleWithFlags & 0x0fff;
737736

738737
uint8_t *aclSdu = &pdata[sizeof(HCIACLHdr)];
739738

740739
#ifdef _BLE_TRACE_
740+
uint8_t bcFlag = (aclHeader->connectionHandleWithFlags & 0xc000) >> 14;
741741
Serial.print("Acl packet bcFlag = ");
742742
Serial.print(bcFlag, BIN);
743743
Serial.print(" pbFlag = ");

0 commit comments

Comments
 (0)