sturle
Member
Another place the Units setting is not applied is the Location tab showing in the righ upper corner the speed in miles per hour, this is both in release 0.28.01 as 0.50.06. Should look at Units and show km/h for me.
View attachment 77400
This is in fact not mph, but mph converted from km/h to mph! Quick bugfix, tested and works:
Code:
--- a/src/org/noroomattheinn/visibletesla/LocationController.java
+++ b/src/org/noroomattheinn/visibletesla/LocationController.java
@@ -181,7 +181,7 @@ public class LocationController extends BaseController {
// });
}
- multigauge.setVal(Side.LEFT, useMiles ? ss.speed : Utils.kmToMiles(ss.speed));
+ multigauge.setVal(Side.LEFT, useMiles ? ss.speed : Utils.milesToKm(ss.speed));
multigauge.setVal(Side.RIGHT, ss.power);
}
Last edited: