Skip to content

Commit 6ea2f11

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
1 parent 9941ebb commit 6ea2f11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility/L2CAPSignaling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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(uint 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)