From a34665eea489d526f926a143d88a04c483c4f2f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 23 Mar 2017 16:28:12 +0100 Subject: [PATCH] Fix bluetooth error for older builds --- plugins/deviceplugins/senic/nuimo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/deviceplugins/senic/nuimo.cpp b/plugins/deviceplugins/senic/nuimo.cpp index a485a96f..3f2c4d72 100644 --- a/plugins/deviceplugins/senic/nuimo.cpp +++ b/plugins/deviceplugins/senic/nuimo.cpp @@ -421,21 +421,27 @@ void Nuimo::serviceError(const QLowEnergyService::ServiceError &error) case QLowEnergyService::OperationError: errorString = "Operation error"; break; +#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) case QLowEnergyService::CharacteristicReadError: errorString = "Characteristic read error"; break; +#endif case QLowEnergyService::CharacteristicWriteError: errorString = "Characteristic write error"; break; +#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) case QLowEnergyService::DescriptorReadError: errorString = "Descriptor read error"; break; +#endif case QLowEnergyService::DescriptorWriteError: errorString = "Descriptor write error"; break; +#if (QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)) case QLowEnergyService::UnknownError: errorString = "Unknown error"; break; +#endif default: errorString = "Unknown error"; break;