Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit15bca41

Browse files
committed
fix: unused warning when _BLE_TRACE_ undefined
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent9f656c6 commit15bca41

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)

[8]ページ先頭

©2009-2025 Movatter.jp