summaryrefslogtreecommitdiffstats
path: root/api/direct_bt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-04-22 01:51:18 +0200
committerSven Gothel <[email protected]>2022-04-22 01:51:18 +0200
commitae3d882baf5634443481fed9555ca0f3bb472fa3 (patch)
treee1eeb3e9edd17d4ed39bb8db05bcf3e5b139da1e /api/direct_bt
parent454034a4a7cf066cd69609cba71578a17c142a3e (diff)
Remove explicit atomic::load() calls written out where redundant (type operator)
Diffstat (limited to 'api/direct_bt')
-rw-r--r--api/direct_bt/BTDevice.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/direct_bt/BTDevice.hpp b/api/direct_bt/BTDevice.hpp
index 5a379cb9..7534e716 100644
--- a/api/direct_bt/BTDevice.hpp
+++ b/api/direct_bt/BTDevice.hpp
@@ -412,7 +412,7 @@ namespace direct_bt {
/**
* Return true if the device has been successfully connected, otherwise false.
*/
- bool getConnected() noexcept { return isConnected.load(); }
+ bool getConnected() noexcept { return isConnected; }
/**
* Establish a HCI BDADDR_LE_PUBLIC or BDADDR_LE_RANDOM connection to this device.