From ae27f00d24fe384a986543883390e98052be436a Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Mon, 8 Oct 2018 15:29:36 -0300 Subject: [PATCH] APMLightsComponent.qml: update to use versionCompare() --- src/AutoPilotPlugins/APM/APMLightsComponent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/APM/APMLightsComponent.qml b/src/AutoPilotPlugins/APM/APMLightsComponent.qml index 4e42ba066..d976fb41d 100644 --- a/src/AutoPilotPlugins/APM/APMLightsComponent.qml +++ b/src/AutoPilotPlugins/APM/APMLightsComponent.qml @@ -34,7 +34,7 @@ SetupPage { QGCPalette { id: palette; colorGroupEnabled: true } property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle - property bool _oldFW: !(_activeVehicle.firmwareMajorVersion > 3 || _activeVehicle.firmwareMinorVersion > 5 || _activeVehicle.firmwarePatchVersion >= 2) + property bool _oldFW: _activeVehicle.versionCompare(3, 5, 2) < 0 property Fact _rc5Function: controller.getParameterFact(-1, "r.SERVO5_FUNCTION") property Fact _rc6Function: controller.getParameterFact(-1, "r.SERVO6_FUNCTION") property Fact _rc7Function: controller.getParameterFact(-1, "r.SERVO7_FUNCTION") -- 2.22.0