Skip to content

Commit 2860365

Browse files
committed
BLE: Improve readibility of condition.
1 parent 40a403e commit 2860365

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ ble_error_t GenericSecurityManager::setLinkEncryption(
448448
} else if (encryption == link_encryption_t::ENCRYPTED_WITH_SC_AND_MITM) {
449449

450450
if (cb->ltk_mitm_protected &&
451-
cb->secure_connections_paired && !
452-
cb->encrypted
451+
cb->secure_connections_paired &&
452+
!cb->encrypted
453453
) {
454454
cb->encryption_requested = true;
455455
return enable_encryption(connection);

0 commit comments

Comments
 (0)