Skip to content

Commit 9a6d4e0

Browse files
authored
fix: compilation error when using _BLE_TRACE
Now correctly acceses the existing variables and uses an unsigned int for size comparison
1 parent baa1370 commit 9a6d4e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utility/L2CAPSignaling.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ void L2CAPSignalingClass::handleSecurityData(uint16_t connectionHandle, uint8_t
230230
Serial.print("V : ");
231231
btct.printBytes(V,32);
232232
Serial.print("X : ");
233-
btct.printBytes(X,16);
233+
btct.printBytes(HCI.Na,16);
234234
Serial.print("Y : ");
235-
btct.printBytes(Y,16);
235+
btct.printBytes(HCI.Nb,16);
236236
Serial.print("g2res : ");
237237
btct.printBytes(g2Result,4);
238238
Serial.print("Result : ");
@@ -413,7 +413,7 @@ void L2CAPSignalingClass::smCalculateLTKandConfirm(uint16_t handle, uint8_t expe
413413
// Send our confirmation value to complete authentication stage 2
414414
uint8_t ret[17];
415415
ret[0] = CONNECTION_PAIRING_DHKEY_CHECK;
416-
for(int i=0; i<sizeof(Eb); i++){
416+
for(uint i=0; i<sizeof(Eb); i++){
417417
ret[sizeof(Eb)-i] = Eb[i];
418418
}
419419
HCI.sendAclPkt(handle, SECURITY_CID, sizeof(ret), ret );

0 commit comments

Comments
 (0)