summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-10-25 10:33:57 +0100
committerSven Gothel <[email protected]>2020-10-25 10:33:57 +0100
commit6110e4fd8e978509ba4f383ad78a4385c8cbc3c1 (patch)
tree1d4009946c8efd05026b29a2a2734fa8a3b08afb
parent5f6fdee65c34337b1ade27de59192dbfe613317d (diff)
AdapterInfo: Fix isCurrentSettingBitSet() -> const; toString() shows 'AdapterInfo'v2.1.32
-rw-r--r--api/direct_bt/DBTTypes.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/direct_bt/DBTTypes.hpp b/api/direct_bt/DBTTypes.hpp
index f65688bd..038ec8d6 100644
--- a/api/direct_bt/DBTTypes.hpp
+++ b/api/direct_bt/DBTTypes.hpp
@@ -220,7 +220,7 @@ namespace direct_bt {
return setting == ( setting & supported_setting );
}
AdapterSetting getCurrentSettingMask() const noexcept { return current_setting; }
- bool isCurrentSettingBitSet(const AdapterSetting bit) noexcept { return AdapterSetting::NONE != ( current_setting & bit ); }
+ bool isCurrentSettingBitSet(const AdapterSetting bit) const noexcept { return AdapterSetting::NONE != ( current_setting & bit ); }
/** Map {@link #getCurrentSettingMask()} to {@link BTMode} */
BTMode getCurrentBTMode() const noexcept { return getAdapterSettingsBTMode(current_setting); }
@@ -230,7 +230,7 @@ namespace direct_bt {
std::string getShortName() const noexcept { return short_name; }
std::string toString() const noexcept {
- return "Adapter[id "+std::to_string(dev_id)+", address "+address.toString()+", version "+std::to_string(version)+
+ return "AdapterInfo[id "+std::to_string(dev_id)+", address "+address.toString()+", version "+std::to_string(version)+
", manuf "+std::to_string(manufacturer)+
", settings[sup "+getAdapterSettingMaskString(supported_setting)+", cur "+getAdapterSettingMaskString(current_setting)+
"], name '"+name+"', shortName '"+short_name+"']";