diff options
author | Sven Gothel <[email protected]> | 2020-06-25 00:32:17 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-06-25 00:32:17 +0200 |
commit | d216c80596bd662087f47d275f2fc302e4061abc (patch) | |
tree | 2e8a828c9d12fd40c56796cdf340cd0e789bbda9 | |
parent | a1a31f0b59b9896a04973846bfad2aa0bc9e8d1f (diff) |
DBTDevice::pingGATT(): Fix return value/type in error case (missed in previous commit)
-rw-r--r-- | src/direct_bt/DBTDevice.cpp | 2 |
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 |