aboutsummaryrefslogtreecommitdiffstats
path: root/src/direct_bt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-06-25 00:32:17 +0200
committerSven Gothel <[email protected]>2020-06-25 00:32:17 +0200
commitd216c80596bd662087f47d275f2fc302e4061abc (patch)
tree2e8a828c9d12fd40c56796cdf340cd0e789bbda9 /src/direct_bt
parenta1a31f0b59b9896a04973846bfad2aa0bc9e8d1f (diff)
DBTDevice::pingGATT(): Fix return value/type in error case (missed in previous commit)
Diffstat (limited to 'src/direct_bt')
-rw-r--r--src/direct_bt/DBTDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/direct_bt/DBTDevice.cpp b/src/direct_bt/DBTDevice.cpp
index 45a7c52c..bb339e9e 100644
--- a/src/direct_bt/DBTDevice.cpp
+++ b/src/direct_bt/DBTDevice.cpp
@@ -496,7 +496,7 @@ bool DBTDevice::pingGATT() {
connectGATT();
if( nullptr == gattHandler || !gattHandler->isOpen() ) {
ERR_PRINT("DBTDevice::getServices: connectGATT failed");
- return std::vector<std::shared_ptr<GATTService>>();
+ return false;
}
}
std::vector<std::shared_ptr<GATTService>> & gattServices = gattHandler->getServices(); // reference of the GATTHandler's list