Commit 3954571f authored by Alex Blasche's avatar Alex Blasche
Browse files

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: default avatarTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Reviewed-by: default avatarAlex Blasche <alexander.blasche@theqtcompany.com>
Showing with 1 addition and 0 deletions
......@@ -226,6 +226,7 @@ void QLowEnergyControllerPrivate::setError(
break;
case QLowEnergyController::NoError:
return;
default:
case QLowEnergyController::UnknownError:
errorString = QLowEnergyController::tr("Unknown Error");
break;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment