summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-11-10 04:15:47 +0100
committerSven Gothel <[email protected]>2020-11-10 04:15:47 +0100
commit6a1e52252bd403776238807a47292e27f0d68b35 (patch)
tree4ce8a4834edfea33fb270fdedde82cbe98f99e1d /api
parent8c75eaa25633c46c97c6ff7b3790b57c7ff8855f (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.hpp2
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