diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2014-11-11 14:25:34 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2014-11-12 15:59:25 +0100 |
commit | 720137353b3d6ecb6a07d1f5486ab20306be8134 (patch) | |
tree | abd069d6d6dc057b45df81146795e6287735950d /src/bluetooth/qlowenergyserviceprivate.cpp | |
parent | 2f4269da610083795440545c7f191eea1c9c3c4c (diff) |
Fix intermittent failure when mapping handles to services
startHandle and endHandle were randomly initialized and thus
QLowEnergyControllerPrivate::serviceForHandle(..) failed at the same
rate.
In addition this adds a few debug logs which turned out useful when
debugging the above issue.
Change-Id: I41b65274213a66fa100d8c69bba02be0bb876b65
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qlowenergyserviceprivate.cpp')
-rw-r--r-- | src/bluetooth/qlowenergyserviceprivate.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergyserviceprivate.cpp b/src/bluetooth/qlowenergyserviceprivate.cpp index 7c310123..3b4ea64e 100644 --- a/src/bluetooth/qlowenergyserviceprivate.cpp +++ b/src/bluetooth/qlowenergyserviceprivate.cpp @@ -37,6 +37,8 @@ QT_BEGIN_NAMESPACE QLowEnergyServicePrivate::QLowEnergyServicePrivate(QObject *parent) : QObject(parent), + startHandle(0), + endHandle(0), type(QLowEnergyService::PrimaryService), state(QLowEnergyService::InvalidService), lastError(QLowEnergyService::NoError) |