Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utility/HCI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ");
Expand Down
Loading