Skip to content

Commit 206c2dd

Browse files
FidelSchfpistm
authored andcommitted
fix: compilation error when using _BLE_TRACE
Now correctly acceses the existing variables and uses an unsigned int for size comparison fpistm: changed the uint type to uint32_t to avoid build issue with below target: - arduino:megaavr:uno2018 - arduino:renesas_uno:unor4wif
1 parent cc60b1c commit 206c2dd

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 : ");
@@ -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)