Commit 7a2ed426 authored by Willian Galvani's avatar Willian Galvani

APMSubFrameComponent.qml: update to use versionCompare()

parent ae27f00d
...@@ -25,7 +25,7 @@ SetupPage { ...@@ -25,7 +25,7 @@ SetupPage {
pageComponent: subFramePageComponent pageComponent: subFramePageComponent
property var _activeVehicle: QGroundControl.multiVehicleManager.activeVehicle 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 } APMAirframeComponentController { id: controller; factPanel: subFramePage.viewPanel }
......
Markdown is supported
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