Commit e4a4c33b authored by Jacob Dahl's avatar Jacob Dahl

updated from reviewer feedback

parent 68cd055e
...@@ -25,7 +25,7 @@ PreFlightCheckButton { ...@@ -25,7 +25,7 @@ PreFlightCheckButton {
property int failurePercent: 40 property int failurePercent: 40
property bool allowFailurePercentOverride: false property bool allowFailurePercentOverride: false
property var batteryValue: activeVehicle ? activeVehicle.battery.percentRemaining.value : 0 property var _batteryValue: activeVehicle ? activeVehicle.battery.percentRemaining.value : 0
property var _batPercentRemaining: batteryValue ? batteryValue : 0 property var _batPercentRemaining: isNaN(_batteryValue) ? 0 : _batteryValue
property bool _batLow: _batPercentRemaining < failurePercent property bool _batLow: _batPercentRemaining < failurePercent
} }
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