diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2014-11-12 10:41:09 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2014-11-14 08:46:08 +0100 |
commit | 03d72f5a961bd1c81e9d599937b4105c35f31ee1 (patch) | |
tree | 34aa9f6e583a917463c095f486ccf4d81a86eb5a /src/bluetooth/qlowenergycontroller_android.cpp | |
parent | 26b5e44ffc7c33b258e6c3eb6bce340d51a4a377 (diff) |
Fix wrong error signal emision on writeCharacteristic() on Android
There is no need to go around the event loop. Furthermore there is no
signal "void error(QLEHandle)" in QLEService. The signal is
void error(QLEService::ServiceError)
Change-Id: I53e9eb9b82cff38b15edab524329fa98206ab27b
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_android.cpp')
-rw-r--r-- | src/bluetooth/qlowenergycontroller_android.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bluetooth/qlowenergycontroller_android.cpp b/src/bluetooth/qlowenergycontroller_android.cpp index 582e83a6..868457e9 100644 --- a/src/bluetooth/qlowenergycontroller_android.cpp +++ b/src/bluetooth/qlowenergycontroller_android.cpp @@ -183,8 +183,7 @@ void QLowEnergyControllerPrivate::writeCharacteristic( env->DeleteLocalRef(payload); if (!result) - QMetaObject::invokeMethod(service.data(), "error", Qt::QueuedConnection, - Q_ARG(QLowEnergyHandle, charHandle)); + service->setError(QLowEnergyService::CharacteristicWriteError); } void QLowEnergyControllerPrivate::writeDescriptor( |