diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-12-23 10:07:23 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-12-23 13:12:58 +0000 |
commit | 3954571fa0ebffac7f1ea2f01b9d891bbd3e83b2 (patch) | |
tree | e4ddad7ba96b9fe77d4d79f7044842f93f457bd6 | |
parent | b4db7cd2197c7083ad90cae74645166bf1459975 (diff) | |
download | qtconnectivity-3954571fa0ebffac7f1ea2f01b9d891bbd3e83b2.tar.gz |
Handle undefined QLowEnergyController error cases as Unknown error
This is important on Android as not all error conditions are exposed
via QLowEnergyController::Error enum.
Change-Id: I442ecffcadc01e1a2b60ae17dc6e63e08e5f4149
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
-rw-r--r-- | src/bluetooth/qlowenergycontroller.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bluetooth/qlowenergycontroller.cpp b/src/bluetooth/qlowenergycontroller.cpp index e39df97c..3fb68e19 100644 --- a/src/bluetooth/qlowenergycontroller.cpp +++ b/src/bluetooth/qlowenergycontroller.cpp @@ -226,6 +226,7 @@ void QLowEnergyControllerPrivate::setError( break; case QLowEnergyController::NoError: return; + default: case QLowEnergyController::UnknownError: errorString = QLowEnergyController::tr("Unknown Error"); break; |