Commit 68cd055e authored by Jacob Dahl's avatar Jacob Dahl

fixes battery % issue with NaN

parent f65bf438
......@@ -25,6 +25,7 @@ PreFlightCheckButton {
property int failurePercent: 40
property bool allowFailurePercentOverride: false
property var _batPercentRemaining: activeVehicle ? activeVehicle.battery.percentRemaining.value : 0
property var batteryValue: activeVehicle ? activeVehicle.battery.percentRemaining.value : 0
property var _batPercentRemaining: batteryValue ? batteryValue : 0
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