diff options
-rw-r--r-- | app/Dashboard.qml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Dashboard.qml b/app/Dashboard.qml index 1a797c6..3c1a73b 100644 --- a/app/Dashboard.qml +++ b/app/Dashboard.qml @@ -33,7 +33,7 @@ ApplicationWindow { } property double vehicleSpeed: 0 - property double engineSpeed: 0 + property int engineSpeed: 0 property bool mphDisplay: false Component.onCompleted : { @@ -74,8 +74,8 @@ ApplicationWindow { else vehicleSpeed = parseFloat(value) } else if (path === "Vehicle.Powertrain.CombustionEngine.Speed") { - engineSpeed = parseFloat(value) - tachometer.value = engineSpeed / 7000 + engineSpeed = parseInt(value) + tachometer.value = engineSpeed / 7000.0 } else if (path === "Vehicle.Cabin.Infotainment.HMI.DistanceUnit") { if (value === "km") { mphDisplay = false |