summaryrefslogtreecommitdiffstats
path: root/vehicle-signals/vehiclesignals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vehicle-signals/vehiclesignals.cpp')
-rw-r--r--vehicle-signals/vehiclesignals.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle-signals/vehiclesignals.cpp b/vehicle-signals/vehiclesignals.cpp
index f3db521..d6cf8eb 100644
--- a/vehicle-signals/vehiclesignals.cpp
+++ b/vehicle-signals/vehiclesignals.cpp
@@ -337,7 +337,7 @@ bool VehicleSignals::parseData(const QJsonObject &response, QString &path, QStri
} else if (dp["value"].isString()) {
value = dp["value"].toString();
} else if (dp["value"].isDouble()) {
- value.setNum(dp["value"].toDouble());
+ value = QString::number(dp["value"].toDouble(), 'f', 9);
} else if (dp["value"].isBool()) {
value = dp["value"].toBool() ? "true" : "false";
} else {