diff options
author | Sven Gothel <[email protected]> | 2020-11-10 04:15:47 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-11-10 04:15:47 +0100 |
commit | 6a1e52252bd403776238807a47292e27f0d68b35 (patch) | |
tree | 4ce8a4834edfea33fb270fdedde82cbe98f99e1d /api | |
parent | 8c75eaa25633c46c97c6ff7b3790b57c7ff8855f (diff) |
MgmtEvtCmdComplete::getCurrentSettings(): Pass AdapterSetting storage by reference and only write if result is available
Diffstat (limited to 'api')
-rw-r--r-- | api/direct_bt/MgmtTypes.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/direct_bt/MgmtTypes.hpp b/api/direct_bt/MgmtTypes.hpp index df5f4536..dfac356b 100644 --- a/api/direct_bt/MgmtTypes.hpp +++ b/api/direct_bt/MgmtTypes.hpp @@ -1027,7 +1027,7 @@ namespace direct_bt { /** * Returns AdapterSetting if getCmdOpcode() expects a single 4-octet AdapterSetting and hence getDataSize() == 4. */ - AdapterSetting getCurrentSettings() const noexcept; + bool getCurrentSettings(AdapterSetting& current_settings) const noexcept; /** * Convert this instance into ConnectionInfo |