BLE: Improve readibility of condition.

pull/6932/head
Vincent Coubard 2018-05-15 12:16:51 +01:00
parent 40a403e99b
commit 2860365a3c
1 changed files with 2 additions and 2 deletions

View File

@ -448,8 +448,8 @@ ble_error_t GenericSecurityManager::setLinkEncryption(
} else if (encryption == link_encryption_t::ENCRYPTED_WITH_SC_AND_MITM) { } else if (encryption == link_encryption_t::ENCRYPTED_WITH_SC_AND_MITM) {
if (cb->ltk_mitm_protected && if (cb->ltk_mitm_protected &&
cb->secure_connections_paired && ! cb->secure_connections_paired &&
cb->encrypted !cb->encrypted
) { ) {
cb->encryption_requested = true; cb->encryption_requested = true;
return enable_encryption(connection); return enable_encryption(connection);