diff options
author | Sven Gothel <[email protected]> | 2022-06-17 01:39:28 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-06-17 01:39:28 +0200 |
commit | cfaa0738b452782f4d20bee1b639351437ab7067 (patch) | |
tree | 2666611600b4b5ce71658773733996f9ec40c4ea /src/direct_bt/BTDevice.cpp | |
parent | 0b79958308960d5a5f71298d036e66b3b0efa30f (diff) |
C++: Shorten is*Set() -> is_set(), fix test requiring all bits set to `bit == ( mask & bit )`
Diffstat (limited to 'src/direct_bt/BTDevice.cpp')
-rw-r--r-- | src/direct_bt/BTDevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/direct_bt/BTDevice.cpp b/src/direct_bt/BTDevice.cpp index ee29d2e0..5a902215 100644 --- a/src/direct_bt/BTDevice.cpp +++ b/src/direct_bt/BTDevice.cpp @@ -1207,8 +1207,8 @@ void BTDevice::hciSMPMsgCallback(std::shared_ptr<BTDevice> sthis, const SMPPDUMs pairing_data.keys_init_exp = msg1.getInitKeyDist(); // responding device overrides initiator's request! pairing_data.keys_resp_exp = msg1.getRespKeyDist(); - const bool use_sc = isSMPAuthReqBitSet( pairing_data.authReqs_init, SMPAuthReqs::SECURE_CONNECTIONS ) && - isSMPAuthReqBitSet( pairing_data.authReqs_resp, SMPAuthReqs::SECURE_CONNECTIONS ); + const bool use_sc = is_set( pairing_data.authReqs_init, SMPAuthReqs::SECURE_CONNECTIONS ) && + is_set( pairing_data.authReqs_resp, SMPAuthReqs::SECURE_CONNECTIONS ); pairing_data.use_sc = use_sc; pmode = ::getPairingMode(use_sc, |