From 3e2c5833ac8dbabb02569544359a61baaa489a76 Mon Sep 17 00:00:00 2001 From: geduxas Date: Wed, 20 Sep 2023 09:31:36 +0000 Subject: OBDSpeed expected as km/h not knots. --- modern/src/common/components/PositionValue.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modern/src/common/components') diff --git a/modern/src/common/components/PositionValue.jsx b/modern/src/common/components/PositionValue.jsx index 58841939..60476177 100644 --- a/modern/src/common/components/PositionValue.jsx +++ b/modern/src/common/components/PositionValue.jsx @@ -13,6 +13,7 @@ import { formatNumericHours, formatPercentage, formatSpeed, + formatSpeedKph, formatTime, formatTemperature, formatVoltage, @@ -53,8 +54,9 @@ const PositionValue = ({ position, property, attribute }) => { case 'longitude': return formatCoordinate('longitude', value, coordinateFormat); case 'speed': - case 'obdSpeed': return value != null ? formatSpeed(value, speedUnit, t) : ''; + case 'obdSpeed': + return value != null ? formatSpeedKph(value, speedUnit, t) : ''; case 'course': return formatCourse(value); case 'altitude': -- cgit v1.2.3