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

Commit b3a6a5b

Browse files
authored
Merge pull request #384 from FidelSch/patch-2
fix: compilation error when using _BLE_TRACE
2 parents 9f7d347 + d52e25a commit b3a6a5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/utility/L2CAPSignaling.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ void L2CAPSignalingClass::handleSecurityData(uint16_t connectionHandle, uint8_t
232232
Serial.print("V : ");
233233
btct.printBytes(V,32);
234234
Serial.print("X : ");
235-
btct.printBytes(X,16);
235+
btct.printBytes(HCI.Na,16);
236236
Serial.print("Y : ");
237-
btct.printBytes(Y,16);
237+
btct.printBytes(HCI.Nb,16);
238238
Serial.print("g2res : ");
239239
btct.printBytes(g2Result,4);
240240
Serial.print("Result : ");
@@ -415,7 +415,7 @@ void L2CAPSignalingClass::smCalculateLTKandConfirm(uint16_t handle, uint8_t expe
415415
// Send our confirmation value to complete authentication stage 2
416416
uint8_t ret[17];
417417
ret[0] = CONNECTION_PAIRING_DHKEY_CHECK;
418-
for(int i=0; i<sizeof(Eb); i++){
418+
for(uint32_t i=0; i<sizeof(Eb); i++){
419419
ret[sizeof(Eb)-i] = Eb[i];
420420
}
421421
HCI.sendAclPkt(handle, SECURITY_CID, sizeof(ret), ret );

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /