From 164d84b5f21047ba0fcacf2a954d25d30ab6f5fd Mon Sep 17 00:00:00 2001 From: Brian Jones Date: Wed, 14 Jan 2015 14:51:06 -0800 Subject: [PATCH] Fix for TC-2353 - convert to MPH properly Change-Id: Ia45ec8d398f3cab96d183aaffd1983dcf045d232 --- js/main.js | 2 +- packaging/modello-dashboard.changes | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 1de6754..f9790db 100644 --- a/js/main.js +++ b/js/main.js @@ -99,7 +99,7 @@ var init = function () { navigator.vehicle.vehicleSpeed.get().then( function(vSpeed){ - dashBoardIndicator.onSpeedChanged(vSpeed.speed); + dashBoardIndicator.onSpeedChanged(Math.round(vSpeed.speed * 0.621371)); }, function(){ console.log("Modello Dashboard failed to get Vehicle Speed"); diff --git a/packaging/modello-dashboard.changes b/packaging/modello-dashboard.changes index 26f311c..d1dddc6 100644 --- a/packaging/modello-dashboard.changes +++ b/packaging/modello-dashboard.changes @@ -1,3 +1,6 @@ +* Wed Jan 14 2015 Brian Jones accepted/tizen/ivi/20141202.054057-1-g2c4441a +- Fix for TC-2353 - convert to MPH properly + * Mon Dec 01 2014 Brian Jones accepted/tizen/ivi/20141121.050646-1-g0584f9b - Changed to use the navigator.vehicle namespace - TC-2055 -- 2.7.4