diff options
author | Aleksei Korkov <akorkov@luxoft.com> | 2020-03-20 14:14:41 +0300 |
---|---|---|
committer | Grigorii Zimin <gzimin@luxoft.com> | 2020-03-24 10:30:11 +0000 |
commit | 89ddd3a41ec7a8822734ae10e4e13a638b8d91bb (patch) | |
tree | 2f8dcc122d351a8d880fbbff7fca9d315eb1cc96 | |
parent | 9cbd67e3f7781286dd6493c467ed0f8777472aae (diff) |
[climate] fix shown precision of Fahrenheit temerature
Fixes: AUTOSUITE-1545
Change-Id: Ie67944b8544e77b3e5b6645fd0d9843355082c06
Reviewed-by: Grigorii Zimin <gzimin@luxoft.com>
-rw-r--r-- | apps/com.pelagicore.climate/stores/ClimateStore.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/com.pelagicore.climate/stores/ClimateStore.qml b/apps/com.pelagicore.climate/stores/ClimateStore.qml index 4e6e2d43..0a192006 100644 --- a/apps/com.pelagicore.climate/stores/ClimateStore.qml +++ b/apps/com.pelagicore.climate/stores/ClimateStore.qml @@ -214,6 +214,6 @@ QtObject { function calculateUnitValue(value) { // Default value is the celsius return root.measurementSystem === Locale.MetricSystem || root.measurementSystem === Locale.ImperialUKSystem ? - value : Math.round(value * 1.8 + 32) + value.toFixed(1) : (value * 1.8 + 32).toFixed(1) } } |