From 7a2ed4263f570811f2e5c2942db27bffcb9c5945 Mon Sep 17 00:00:00 2001 From: Willian Galvani Date: Mon, 8 Oct 2018 15:30:08 -0300 Subject: [PATCH] APMSubFrameComponent.qml: update to use versionCompare() --- src/AutoPilotPlugins/APM/APMSubFrameComponent.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/APM/APMSubFrameComponent.qml b/src/AutoPilotPlugins/APM/APMSubFrameComponent.qml index 301005f..9083992 100644 --- a/src/AutoPilotPlugins/APM/APMSubFrameComponent.qml +++ b/src/AutoPilotPlugins/APM/APMSubFrameComponent.qml @@ -25,7 +25,7 @@ SetupPage { pageComponent: subFramePageComponent 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 APMAirframeComponentController { id: controller; factPanel: subFramePage.viewPanel }