Skip to content

Commit 891142b

Browse files
committed
fix: unused warning when _BLE_TRACE_ undefined
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 0cb4823 commit 891142b

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
@@ -733,13 +733,13 @@ void HCIClass::handleAclDataPkt(uint8_t /*plen*/, uint8_t pdata[])
733733
uint16_t dlen; // dlen + 4 = plen (dlen is the size of the ACL SDU)
734734
} *aclHeader = (HCIACLHdr*)pdata;
735735

736-
uint8_t bcFlag = (aclHeader->connectionHandleWithFlags & 0xc000) >> 14;
737736
uint8_t pbFlag = (aclHeader->connectionHandleWithFlags & 0x3000) >> 12;
738737
uint16_t connectionHandle = aclHeader->connectionHandleWithFlags & 0x0fff;
739738

740739
uint8_t *aclSdu = &pdata[sizeof(HCIACLHdr)];
741740

742741
#ifdef _BLE_TRACE_
742+
uint8_t bcFlag = (aclHeader->connectionHandleWithFlags & 0xc000) >> 14;
743743
Serial.print("Acl packet bcFlag = ");
744744
Serial.print(bcFlag, BIN);
745745
Serial.print(" pbFlag = ");

0 commit comments

Comments
 (0)